You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by jf...@apache.org on 2005/05/10 08:45:57 UTC
svn commit: r169424 -
/jakarta/commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c
Author: jfclere
Date: Mon May 9 23:45:57 2005
New Revision: 169424
URL: http://svn.apache.org/viewcvs?rev=169424&view=rev
Log:
When waittime/10 is bigger than 10 exchange waittime and count.
Modified:
jakarta/commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c
Modified: jakarta/commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c?rev=169424&r1=169423&r2=169424&view=diff
==============================================================================
--- jakarta/commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c (original)
+++ jakarta/commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c Mon May 9 23:45:57 2005
@@ -374,6 +374,10 @@
int i, status, waittime;
log_debug("wait_child %d", pid);
waittime = args->wait/10;
+ if (waittime>10) {
+ count = waittime;
+ waittime = 10;
+ }
while (count>0) {
sleep(1);
/* check if the controler is still running */
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org