From: Richard M. Stallman Date: Fri, 13 Jun 1997 05:49:57 +0000 (+0000) Subject: (Fcall_process): Use setsid to disconnect child X-Git-Tag: emacs-20.1~1711 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1e7963c7f962ba87f09863f87bb40bb5964f5f31;p=emacs.git (Fcall_process): Use setsid to disconnect child process from controlling terminal. --- diff --git a/src/callproc.c b/src/callproc.c index 04484dd55e7..e90423e4dbe 100644 --- a/src/callproc.c +++ b/src/callproc.c @@ -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);