diff options
-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) #ifdef HAVE_PTYS /* First, disconnect its current controlling terminal. */ #ifdef HAVE_SETSID + /* We tried doing setsid only if pty_flag, but it caused + process_set_signal to fail on SGI when using a pipe. */ + setsid (); /* Make the pty's terminal the controlling terminal. */ if (pty_flag) { - setsid (); #ifdef TIOCSCTTY /* We ignore the return value because faith@cs.unc.edu says that is necessary on Linux. */ |