diff options
| author | Richard M. Stallman | 1996-03-24 12:45:26 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-03-24 12:45:26 +0000 |
| commit | 6b2cd868d55e785579772a6d63ce87a844b441fb (patch) | |
| tree | e582ff520df6fa222042ab99961e9143ed322e9d /src/callproc.c | |
| parent | 3743c30c5ee8e6418393fc49baf99f044e023f3f (diff) | |
| download | emacs-6b2cd868d55e785579772a6d63ce87a844b441fb.tar.gz emacs-6b2cd868d55e785579772a6d63ce87a844b441fb.zip | |
(Fcall_process, child_setup): If BSD_PGRPS, call
setpgrp the BSD way even on USG.
Diffstat (limited to 'src/callproc.c')
| -rw-r--r-- | src/callproc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/callproc.c b/src/callproc.c index 12e0aa0ce0b..5e8be77182b 100644 --- a/src/callproc.c +++ b/src/callproc.c | |||
| @@ -443,7 +443,7 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.") | |||
| 443 | { | 443 | { |
| 444 | if (fd[0] >= 0) | 444 | if (fd[0] >= 0) |
| 445 | close (fd[0]); | 445 | close (fd[0]); |
| 446 | #ifdef USG | 446 | #if defined(USG) && !defined(BSD_PGRPS) |
| 447 | setpgrp (); | 447 | setpgrp (); |
| 448 | #else | 448 | #else |
| 449 | setpgrp (pid, pid); | 449 | setpgrp (pid, pid); |
| @@ -848,7 +848,7 @@ child_setup (in, out, err, new_argv, set_pgrp, current_dir) | |||
| 848 | close (err); | 848 | close (err); |
| 849 | #endif /* not WINDOWSNT */ | 849 | #endif /* not WINDOWSNT */ |
| 850 | 850 | ||
| 851 | #ifdef USG | 851 | #if defined(USG) && !defined(BSD_PGRPS) |
| 852 | #ifndef SETPGRP_RELEASES_CTTY | 852 | #ifndef SETPGRP_RELEASES_CTTY |
| 853 | setpgrp (); /* No arguments but equivalent in this case */ | 853 | setpgrp (); /* No arguments but equivalent in this case */ |
| 854 | #endif | 854 | #endif |