changeset 18235:43ce16d5f31e

(Fcall_process): Use setsid to disconnect child process from controlling terminal.
author Richard M. Stallman <rms@gnu.org>
date Fri, 13 Jun 1997 05:49:57 +0000
parents 2e66f4ee4ca8
children f249cd470d71
files src/callproc.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/callproc.c	Fri Jun 13 00:52:37 1997 +0000
+++ b/src/callproc.c	Fri Jun 13 05:49:57 1997 +0000
@@ -528,7 +528,10 @@
       {
 	if (fd[0] >= 0)
 	  close (fd[0]);
-#if defined(USG) && !defined(BSD_PGRPS)
+#ifdef HAVE_SETSID
+        setsid ();
+#endif
+#if defined (USG) && !defined (BSD_PGRPS)
         setpgrp ();
 #else
         setpgrp (pid, pid);