From: Richard M. Stallman Date: Thu, 12 Mar 1998 06:59:25 +0000 (+0000) Subject: (SETUP_SLAVE_PTY): New definition. X-Git-Tag: emacs-20.3~1929 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8828ae9b5e11e0be07716b24bb972243c62f8461;p=emacs.git (SETUP_SLAVE_PTY): New definition. --- diff --git a/src/s/ptx4.h b/src/s/ptx4.h index 3042c0a8d82..8f4db997708 100644 --- a/src/s/ptx4.h +++ b/src/s/ptx4.h @@ -13,3 +13,12 @@ /* Marcus Daniels says vfork does exist. */ #define HAVE_VFORK +/* pae@dim.com (Phil Ernhardt) says this correction to + the definition in usg5-4.h is needed to prevent + all asynchronous subprocesses from exiting right away. */ +#undef SETUP_SLAVE_PTY +#define SETUP_SLAVE_PTY \ + if (ioctl (xforkin, I_PUSH, "ldterm") == -1) \ + fatal ("ioctl I_PUSH ldterm", errno); \ + if (ioctl (xforkin, I_PUSH, "ttcompat") == -1) \ + fatal ("ioctl I_PUSH ttcompat", errno);