runsvdir: fix "linear wait time" bug
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Wed, 26 Sep 2007 12:18:07 +0000 (12:18 +0000)
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Wed, 26 Sep 2007 12:18:07 +0000 (12:18 +0000)
git-svn-id: svn://busybox.net/trunk/busybox@20039 69ca8d6d-28ef-0310-b511-8ec308f3f277

runit/runsvdir.c

index 38da7f8..94397bc 100644 (file)
@@ -300,10 +300,10 @@ int runsvdir_main(int argc, char **argv)
                                stamplog = now + 900;
                        }
                }
-               deadline = now + (check ? 1 : 5);
 
                pfd[0].revents = 0;
                sig_block(SIGCHLD);
+               deadline = (check ? 1 : 5);
                if (rplog)
                        poll(pfd, 1, deadline*1000);
                else