summaryrefslogtreecommitdiffhomepage
path: root/runit
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-09-26 12:18:07 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-09-26 12:18:07 +0000
commit137fbe495d3922b71490d01083f04331eb0e6671 (patch)
tree19443a6cf01544501a3e4cd350ad68d59911ccb4 /runit
parent3982407ba4bb39f09a0eb5873003130245ad5512 (diff)
runsvdir: fix "linear wait time" bug
Diffstat (limited to 'runit')
-rw-r--r--runit/runsvdir.c2
1 files changed, 1 insertions, 1 deletions
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