summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-03-24 12:45:26 +0000
committerRichard M. Stallman <rms@gnu.org>1996-03-24 12:45:26 +0000
commitdd1d2f1bc0f9c3a0b1f67ae64d2b304b74d3932d (patch)
treeaa873661816ced37073dde27d972f499891f53b5
parente3ce5efbbc9d51de4fe482e7e7aec8ceb738e925 (diff)
downloademacs-dd1d2f1bc0f9c3a0b1f67ae64d2b304b74d3932d.tar.gz
(Fcall_process, child_setup): If BSD_PGRPS, call
setpgrp the BSD way even on USG.
-rw-r--r--src/callproc.c4
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.")
{
if (fd[0] >= 0)
close (fd[0]);
-#ifdef USG
+#if defined(USG) && !defined(BSD_PGRPS)
setpgrp ();
#else
setpgrp (pid, pid);
@@ -848,7 +848,7 @@ child_setup (in, out, err, new_argv, set_pgrp, current_dir)
close (err);
#endif /* not WINDOWSNT */
-#ifdef USG
+#if defined(USG) && !defined(BSD_PGRPS)
#ifndef SETPGRP_RELEASES_CTTY
setpgrp (); /* No arguments but equivalent in this case */
#endif