(create_process): Undo April 19 setsid change.

This commit is contained in:
Richard M. Stallman 1994-05-02 04:07:06 +00:00
parent f3942238d2
commit 7ce486180b

View file

@ -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. */