diff options
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/process.c b/src/process.c index 26c59b8ff86..9ef6eb1dede 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -1277,10 +1277,12 @@ create_process (process, new_argv, current_dir) | |||
| 1277 | #ifdef HAVE_PTYS | 1277 | #ifdef HAVE_PTYS |
| 1278 | /* First, disconnect its current controlling terminal. */ | 1278 | /* First, disconnect its current controlling terminal. */ |
| 1279 | #ifdef HAVE_SETSID | 1279 | #ifdef HAVE_SETSID |
| 1280 | /* We tried doing setsid only if pty_flag, but it caused | ||
| 1281 | process_set_signal to fail on SGI when using a pipe. */ | ||
| 1282 | setsid (); | ||
| 1280 | /* Make the pty's terminal the controlling terminal. */ | 1283 | /* Make the pty's terminal the controlling terminal. */ |
| 1281 | if (pty_flag) | 1284 | if (pty_flag) |
| 1282 | { | 1285 | { |
| 1283 | setsid (); | ||
| 1284 | #ifdef TIOCSCTTY | 1286 | #ifdef TIOCSCTTY |
| 1285 | /* We ignore the return value | 1287 | /* We ignore the return value |
| 1286 | because faith@cs.unc.edu says that is necessary on Linux. */ | 1288 | because faith@cs.unc.edu says that is necessary on Linux. */ |