comparison src/s/ptx4.h @ 24210:4dc06f8c8c33

(SETUP_SLAVE_PTY): Use the ptem module if it exists. Don't complain if ttcompat does not exist.
author Richard M. Stallman <rms@gnu.org>
date Thu, 28 Jan 1999 03:49:39 +0000
parents 469c3de61eb1
children 63fd40a97a75
comparison
equal deleted inserted replaced
24209:d0853770c8e7 24210:4dc06f8c8c33
14 #define HAVE_VFORK 14 #define HAVE_VFORK
15 15
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);