]> git.eshelyaron.com Git - emacs.git/commitdiff
(create_process): Undo April 19 setsid change.
authorRichard M. Stallman <rms@gnu.org>
Mon, 2 May 1994 04:07:06 +0000 (04:07 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 2 May 1994 04:07:06 +0000 (04:07 +0000)
src/process.c

index 26c59b8ff86732883da9282fe61b9488fd8ff69e..9ef6eb1dede670f608511c0a617fdb09b3d351e5 100644 (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.  */