diff src/callproc.c @ 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 967f92654591
children 42257ed9c7e3
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);