apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@apache.org
Subject cvs commit: apr/threadproc/unix procsup.c
Date Sun, 11 Feb 2001 19:46:27 GMT
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
  
  
  

Mime
View raw message