svn commit: r169424 - /jakarta/commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r169424 - /jakarta/commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c

Jean-Frederic Clere-4
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: [hidden email]
For additional commands, e-mail: [hidden email]