From 8828ae9b5e11e0be07716b24bb972243c62f8461 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Thu, 12 Mar 1998 06:59:25 +0000 Subject: [PATCH] (SETUP_SLAVE_PTY): New definition. --- src/s/ptx4.h | 9 +++++++++ 1 file changed, 9 insertions(+) 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); -- 2.39.2