You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by rb...@apache.org on 2001/02/11 20:46:27 UTC
cvs commit: apr/threadproc/unix procsup.c
rbb 01/02/11 11:46:27
Modified: threadproc/unix procsup.c
Log:
Change a call from setpgrp to setpgid(0, 0). According to man these are
identical, but the latter is more portable.
Revision Changes Path
1.28 +1 -1 apr/threadproc/unix/procsup.c
Index: procsup.c
===================================================================
RCS file: /home/cvs/apr/threadproc/unix/procsup.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -b -w -u -r1.27 -r1.28
--- procsup.c 2001/02/08 07:45:17 1.27
+++ procsup.c 2001/02/11 19:46:26 1.28
@@ -87,7 +87,7 @@
/* 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