diff options
-rw-r--r-- | threadproc/unix/procsup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/threadproc/unix/procsup.c b/threadproc/unix/procsup.c index dd2fffb1e..766d947b2 100644 --- a/threadproc/unix/procsup.c +++ b/threadproc/unix/procsup.c @@ -87,7 +87,7 @@ apr_status_t apr_proc_detach(void) /* MPE uses negative pid for process group */ pgrp = -getpid(); #else - if ((pgrp = setpgrp(getpid(), 0)) == -1) { + if ((pgrp = setpgid(0, 0)) == -1) { return errno; } #endif |