# HG changeset patch # User Richard M. Stallman # Date 889685965 0 # Node ID 469c3de61eb1e7124caa83b3726d60e6c2f4f8e1 # Parent 6988880cc529d6842a97e04c527c1fe20e2e0860 (SETUP_SLAVE_PTY): New definition. diff -r 6988880cc529 -r 469c3de61eb1 src/s/ptx4.h --- a/src/s/ptx4.h Thu Mar 12 05:50:33 1998 +0000 +++ b/src/s/ptx4.h Thu Mar 12 06:59:25 1998 +0000 @@ -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);