Mercurial > emacs
comparison src/process.c @ 5548:36d2fd17f833
(create_process): Set line discipline only if pty_flag.
| author | Richard M. Stallman <rms@gnu.org> |
|---|---|
| date | Mon, 10 Jan 1994 18:13:39 +0000 |
| parents | dbc1d920ef5c |
| children | fd7524d61a8d |
comparison
equal
deleted
inserted
replaced
| 5547:261bf09dc10a | 5548:36d2fd17f833 |
|---|---|
| 1243 is set when we open the pty. */ | 1243 is set when we open the pty. */ |
| 1244 setpgrp (); | 1244 setpgrp (); |
| 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 |
| 1257 can do TIOCSPGRP only to the process's controlling tty. */ | 1258 can do TIOCSPGRP only to the process's controlling tty. */ |
| 1258 if (pty_flag) | 1259 if (pty_flag) |
