1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-03 10:31:37 -08:00

(Fcall_process): Use setsid to disconnect child

process from controlling terminal.
This commit is contained in:
Richard M. Stallman 1997-06-13 05:49:57 +00:00
parent 21cffb834a
commit 1e7963c7f9

View 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);