aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
authorRichard M. Stallman1994-01-10 18:13:39 +0000
committerRichard M. Stallman1994-01-10 18:13:39 +0000
commitafc549fd998d2f66b8dfda37d86bb27046938215 (patch)
treea9105c919e3a90dadcdf1defc0d071854d579975 /src/process.c
parentf920c4419c728960494470e146c5a53bf40d7c0c (diff)
downloademacs-afc549fd998d2f66b8dfda37d86bb27046938215.tar.gz
emacs-afc549fd998d2f66b8dfda37d86bb27046938215.zip
(create_process): Set line discipline only if pty_flag.
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/process.c b/src/process.c
index d43b4880f7b..301a44dd534 100644
--- a/src/process.c
+++ b/src/process.c
@@ -1245,12 +1245,13 @@ create_process (process, new_argv, current_dir)
1245#endif /* USG */ 1245#endif /* USG */
1246#endif /* not HAVE_SETSID */ 1246#endif /* not HAVE_SETSID */
1247#ifdef NTTYDISC 1247#ifdef NTTYDISC
1248 { 1248 if (pty_flag)
1249 /* Use new line discipline. */ 1249 {
1250 int ldisc = NTTYDISC; 1250 /* Use new line discipline. */
1251 if (ioctl (xforkin, TIOCSETD, &ldisc) < 0) 1251 int ldisc = NTTYDISC;
1252 write (1, "create_process/TIOCSETD failed\n", 31); 1252 if (ioctl (xforkin, TIOCSETD, &ldisc) < 0)
1253 } 1253 write (1, "create_process/TIOCSETD failed\n", 31);
1254 }
1254#endif 1255#endif
1255#ifdef TIOCNOTTY 1256#ifdef TIOCNOTTY
1256 /* In 4.3BSD, the TIOCSPGRP bug has been fixed, and now you 1257 /* In 4.3BSD, the TIOCSPGRP bug has been fixed, and now you