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:
parent
21cffb834a
commit
1e7963c7f9
1 changed files with 4 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue