diff options
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); |