commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jfcl...@apache.org
Subject cvs commit: jakarta-commons/daemon/src/native/unix/native jsvc-unix.c
Date Mon, 03 Jan 2005 11:51:23 GMT
jfclere     2005/01/03 03:51:23

  Modified:    daemon/src/native/unix/native jsvc-unix.c
  Log:
  Delete the pid file when the son process exists correctly.  (PR: 31614).
  
  Revision  Changes    Path
  1.11      +4 -1      jakarta-commons/daemon/src/native/unix/native/jsvc-unix.c
  
  Index: jsvc-unix.c
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/daemon/src/native/unix/native/jsvc-unix.c,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- jsvc-unix.c	18 Mar 2004 03:59:41 -0000	1.10
  +++ jsvc-unix.c	3 Jan 2005 11:51:23 -0000	1.11
  @@ -474,6 +474,9 @@
           if (WIFEXITED(status)) {
               status=WEXITSTATUS(status);
   
  +            /* Delete the pid file */
  +            unlink(args->pidf);
  +
               /* If the child got out with 123 he wants to be restarted */
               if (status==123) {
                   log_debug("Reloading service");
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message