changeset 7266:f87808bd90e9

(create_process): Undo April 19 setsid change.
author Richard M. Stallman <rms@gnu.org>
date Mon, 02 May 1994 04:07:06 +0000
parents bca3fe63efec
children 4aa70d4d981c
files src/process.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/process.c	Mon May 02 00:48:12 1994 +0000
+++ b/src/process.c	Mon May 02 04:07:06 1994 +0000
@@ -1277,10 +1277,12 @@
 #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.  */