From 137fbe495d3922b71490d01083f04331eb0e6671 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Wed, 26 Sep 2007 12:18:07 +0000 Subject: runsvdir: fix "linear wait time" bug --- runit/runsvdir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3