Mercurial > emacs
comparison src/process.c @ 6928:a2f4fd22e71f
(create_process): Test TIOCSETD along with NTTYDISC.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 16 Apr 1994 07:26:19 +0000 |
parents | bcaddbe53068 |
children | c5f990fad6bb |
comparison
equal
deleted
inserted
replaced
6927:c9f93ac26d28 | 6928:a2f4fd22e71f |
---|---|
1288 afterwards. Otherwise, we lose our controlling tty which | 1288 afterwards. Otherwise, we lose our controlling tty which |
1289 is set when we open the pty. */ | 1289 is set when we open the pty. */ |
1290 setpgrp (); | 1290 setpgrp (); |
1291 #endif /* USG */ | 1291 #endif /* USG */ |
1292 #endif /* not HAVE_SETSID */ | 1292 #endif /* not HAVE_SETSID */ |
1293 #ifdef NTTYDISC | 1293 #if defined (NTTYDISC) || defined (TIOCSETD) |
1294 if (pty_flag && xforkin >= 0) | 1294 if (pty_flag && xforkin >= 0) |
1295 { | 1295 { |
1296 /* Use new line discipline. */ | 1296 /* Use new line discipline. */ |
1297 int ldisc = NTTYDISC; | 1297 int ldisc = NTTYDISC; |
1298 if (ioctl (xforkin, TIOCSETD, &ldisc) < 0) | 1298 if (ioctl (xforkin, TIOCSETD, &ldisc) < 0) |