(create_process): Undo April 19 setsid change.
This commit is contained in:
parent
f3942238d2
commit
7ce486180b
1 changed files with 3 additions and 1 deletions
|
@ -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. */
|
||||
|
|
Loading…
Add table
Reference in a new issue