diff options
| author | Richard M. Stallman | 1993-12-25 01:44:47 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-12-25 01:44:47 +0000 |
| commit | 000ab717b0c940bdacc0875c27f1dc44ace08ac3 (patch) | |
| tree | 6275fd7bc4c18880988c3f4a22dcfc8b2dda6169 /src/process.c | |
| parent | f72ea9815b8d319b34e861c9f368556b4472f00b (diff) | |
| download | emacs-000ab717b0c940bdacc0875c27f1dc44ace08ac3.tar.gz emacs-000ab717b0c940bdacc0875c27f1dc44ace08ac3.zip | |
(create_process) [NTTYDISC]: Set the tty line discipline.
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/process.c b/src/process.c index 107bc05d28a..031bca2faab 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -1236,12 +1236,20 @@ create_process (process, new_argv, current_dir) | |||
| 1236 | #endif | 1236 | #endif |
| 1237 | #else /* not HAVE_SETSID */ | 1237 | #else /* not HAVE_SETSID */ |
| 1238 | #ifdef USG | 1238 | #ifdef USG |
| 1239 | /* It's very important to call setpgrp() here and no time | 1239 | /* It's very important to call setpgrp here and no time |
| 1240 | afterwards. Otherwise, we lose our controlling tty which | 1240 | afterwards. Otherwise, we lose our controlling tty which |
| 1241 | is set when we open the pty. */ | 1241 | is set when we open the pty. */ |
| 1242 | setpgrp (); | 1242 | setpgrp (); |
| 1243 | #endif /* USG */ | 1243 | #endif /* USG */ |
| 1244 | #endif /* not HAVE_SETSID */ | 1244 | #endif /* not HAVE_SETSID */ |
| 1245 | #ifdef NTTYDISC | ||
| 1246 | { | ||
| 1247 | /* Use new line discipline. */ | ||
| 1248 | int ldisc = NTTYDISC; | ||
| 1249 | if (ioctl (xforkin, TIOCSETD, &ldisc) < 0) | ||
| 1250 | write (1, "create_process/TIOCSETD failed\n", 31); | ||
| 1251 | } | ||
| 1252 | #endif | ||
| 1245 | #ifdef TIOCNOTTY | 1253 | #ifdef TIOCNOTTY |
| 1246 | /* In 4.3BSD, the TIOCSPGRP bug has been fixed, and now you | 1254 | /* In 4.3BSD, the TIOCSPGRP bug has been fixed, and now you |
| 1247 | can do TIOCSPGRP only to the process's controlling tty. */ | 1255 | can do TIOCSPGRP only to the process's controlling tty. */ |