diff options
| author | Karl Heuer | 1994-04-26 21:17:19 +0000 |
|---|---|---|
| committer | Karl Heuer | 1994-04-26 21:17:19 +0000 |
| commit | 9bcf8ec6d3bd081dacbfacdcc042ea3c53038a48 (patch) | |
| tree | 10d2bbde446cf65a2b2483fc9f9263fe3111da99 /src/process.c | |
| parent | 05fd2b657637064d8a7ac7d0f55642c7a6d819df (diff) | |
| download | emacs-9bcf8ec6d3bd081dacbfacdcc042ea3c53038a48.tar.gz emacs-9bcf8ec6d3bd081dacbfacdcc042ea3c53038a48.zip | |
(create_process) [HAVE_TERMIOS && LDISC1]: Use tcsetattr.
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/process.c b/src/process.c index 653e2fe1770..8cb89b94d48 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -1295,6 +1295,16 @@ create_process (process, new_argv, current_dir) | |||
| 1295 | setpgrp (); | 1295 | setpgrp (); |
| 1296 | #endif /* USG */ | 1296 | #endif /* USG */ |
| 1297 | #endif /* not HAVE_SETSID */ | 1297 | #endif /* not HAVE_SETSID */ |
| 1298 | #if defined (HAVE_TERMIOS) && defined (LDISC1) | ||
| 1299 | if (pty_flag && xforkin >= 0) | ||
| 1300 | { | ||
| 1301 | struct termios t; | ||
| 1302 | tcgetattr (xforkin, &t); | ||
| 1303 | t.c_lflag = LDISC1; | ||
| 1304 | if (tcsetattr (xforkin, TCSANOW, &t) < 0) | ||
| 1305 | write (1, "create_process/tcsetattr LDISC1 failed\n", 39); | ||
| 1306 | } | ||
| 1307 | #else | ||
| 1298 | #if defined (NTTYDISC) && defined (TIOCSETD) | 1308 | #if defined (NTTYDISC) && defined (TIOCSETD) |
| 1299 | if (pty_flag && xforkin >= 0) | 1309 | if (pty_flag && xforkin >= 0) |
| 1300 | { | 1310 | { |
| @@ -1304,6 +1314,7 @@ create_process (process, new_argv, current_dir) | |||
| 1304 | write (1, "create_process/TIOCSETD failed\n", 31); | 1314 | write (1, "create_process/TIOCSETD failed\n", 31); |
| 1305 | } | 1315 | } |
| 1306 | #endif | 1316 | #endif |
| 1317 | #endif | ||
| 1307 | #ifdef TIOCNOTTY | 1318 | #ifdef TIOCNOTTY |
| 1308 | /* In 4.3BSD, the TIOCSPGRP bug has been fixed, and now you | 1319 | /* In 4.3BSD, the TIOCSPGRP bug has been fixed, and now you |
| 1309 | can do TIOCSPGRP only to the process's controlling tty. */ | 1320 | can do TIOCSPGRP only to the process's controlling tty. */ |