diff options
| author | Richard M. Stallman | 1997-06-13 05:49:57 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-06-13 05:49:57 +0000 |
| commit | 1e7963c7f962ba87f09863f87bb40bb5964f5f31 (patch) | |
| tree | a36f03002468a3ba19c592fc12b724dd3601f3c0 /src/callproc.c | |
| parent | 21cffb834a5936a12c408f2af9ba4c2e77b72073 (diff) | |
| download | emacs-1e7963c7f962ba87f09863f87bb40bb5964f5f31.tar.gz emacs-1e7963c7f962ba87f09863f87bb40bb5964f5f31.zip | |
(Fcall_process): Use setsid to disconnect child
process from controlling terminal.
Diffstat (limited to 'src/callproc.c')
| -rw-r--r-- | src/callproc.c | 5 |
1 files changed, 4 insertions, 1 deletions
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.") | |||
| 528 | { | 528 | { |
| 529 | if (fd[0] >= 0) | 529 | if (fd[0] >= 0) |
| 530 | close (fd[0]); | 530 | close (fd[0]); |
| 531 | #if defined(USG) && !defined(BSD_PGRPS) | 531 | #ifdef HAVE_SETSID |
| 532 | setsid (); | ||
| 533 | #endif | ||
| 534 | #if defined (USG) && !defined (BSD_PGRPS) | ||
| 532 | setpgrp (); | 535 | setpgrp (); |
| 533 | #else | 536 | #else |
| 534 | setpgrp (pid, pid); | 537 | setpgrp (pid, pid); |