]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fcall_process): Use setsid to disconnect child
authorRichard M. Stallman <rms@gnu.org>
Fri, 13 Jun 1997 05:49:57 +0000 (05:49 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 13 Jun 1997 05:49:57 +0000 (05:49 +0000)
process from controlling terminal.

src/callproc.c

index 04484dd55e7dab66f8d556696fcfdf5148d3264b..e90423e4dbed40cc83b37b0c933f9bb0175631ea 100644 (file)
@@ -528,7 +528,10 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.")
       {
        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);