From: Denis Vlasenko Date: Wed, 26 Sep 2007 12:18:07 +0000 (-0000) Subject: runsvdir: fix "linear wait time" bug X-Git-Tag: 1_8_0~148 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=137fbe495d3922b71490d01083f04331eb0e6671;p=oweals%2Fbusybox.git runsvdir: fix "linear wait time" bug --- diff --git a/runit/runsvdir.c b/runit/runsvdir.c index 38da7f8ae..94397bc36 100644 --- a/runit/runsvdir.c +++ b/runit/runsvdir.c @@ -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