aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/s/ptx4.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/s/ptx4.h b/src/s/ptx4.h
index 8f4db997708..25cf6882986 100644
--- a/src/s/ptx4.h
+++ b/src/s/ptx4.h
@@ -16,9 +16,25 @@
16/* pae@dim.com (Phil Ernhardt) says this correction to 16/* pae@dim.com (Phil Ernhardt) says this correction to
17 the definition in usg5-4.h is needed to prevent 17 the definition in usg5-4.h is needed to prevent
18 all asynchronous subprocesses from exiting right away. */ 18 all asynchronous subprocesses from exiting right away. */
19
20/* James Youngman <jay@gnu.org> found that on "DYNIX/ptx ARNIE 4.0
21 * V4.4.2 i386", the push of the ttcompat module would fail. It seems
22 * that PTX 4.4.2 doesn't have that module, so if the push fails we
23 * don't kill ourselves. While this version lacks ttcompat, it also
24 * has ptem, but the manual page for ptem indicates that it should
25 * be pushed onto the slave side before the line discipline module.
26 * See also the streampty manual page, if you're curious (and have
27 * a ptx system).
28 */
29
30/* rms: I hope that older versions which do have ttcompat
31 will not get confused by the code to use ptem. */
32
19#undef SETUP_SLAVE_PTY 33#undef SETUP_SLAVE_PTY
20#define SETUP_SLAVE_PTY \ 34#define SETUP_SLAVE_PTY \
35 if (ioctl (xforkin, I_PUSH, "ptem") == -1 && errno != EINVAL) \
36 fatal ("ioctl I_PUSH ptem", errno); \
21 if (ioctl (xforkin, I_PUSH, "ldterm") == -1) \ 37 if (ioctl (xforkin, I_PUSH, "ldterm") == -1) \
22 fatal ("ioctl I_PUSH ldterm", errno); \ 38 fatal ("ioctl I_PUSH ldterm", errno); \
23 if (ioctl (xforkin, I_PUSH, "ttcompat") == -1) \ 39 if (ioctl (xforkin, I_PUSH, "ttcompat") == -1 && errno != EINVAL) \
24 fatal ("ioctl I_PUSH ttcompat", errno); 40 fatal ("ioctl I_PUSH ttcompat", errno);