diff src/s/ptx4.h @ 21145:469c3de61eb1

(SETUP_SLAVE_PTY): New definition.
author Richard M. Stallman <rms@gnu.org>
date Thu, 12 Mar 1998 06:59:25 +0000
parents bad765e6a8d9
children 4dc06f8c8c33
line wrap: on
line diff
--- 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 <marcus@sysc.pdx.edu> 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);