summaryrefslogtreecommitdiff
path: root/threadproc
diff options
context:
space:
mode:
authorrbb <rbb@13f79535-47bb-0310-9956-ffa450edef68>2001-02-11 19:46:26 +0000
committerrbb <rbb@13f79535-47bb-0310-9956-ffa450edef68>2001-02-11 19:46:26 +0000
commit96ef7e4951f7b3f16bb3971d73340928a0c22021 (patch)
treea3e6bc2039f321a458272a048c05edfddfbd8059 /threadproc
parentb4f7b8df4d81c08e5defdd110ead5738b7dd1773 (diff)
downloadlibapr-96ef7e4951f7b3f16bb3971d73340928a0c22021.tar.gz
Change a call from setpgrp to setpgid(0, 0). According to man these are
identical, but the latter is more portable. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61216 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'threadproc')
-rw-r--r--threadproc/unix/procsup.c2
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