aboutsummaryrefslogtreecommitdiff
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
parent3982407ba4bb39f09a0eb5873003130245ad5512 (diff)
downloadbusybox-w32-137fbe495d3922b71490d01083f04331eb0e6671.tar.gz
busybox-w32-137fbe495d3922b71490d01083f04331eb0e6671.tar.bz2
busybox-w32-137fbe495d3922b71490d01083f04331eb0e6671.zip
runsvdir: fix "linear wait time" bug
-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)
300 stamplog = now + 900; 300 stamplog = now + 900;
301 } 301 }
302 } 302 }
303 deadline = now + (check ? 1 : 5);
304 303
305 pfd[0].revents = 0; 304 pfd[0].revents = 0;
306 sig_block(SIGCHLD); 305 sig_block(SIGCHLD);
306 deadline = (check ? 1 : 5);
307 if (rplog) 307 if (rplog)
308 poll(pfd, 1, deadline*1000); 308 poll(pfd, 1, deadline*1000);
309 else 309 else