runsvdir: fix "linear wait time" bug
This commit is contained in:
parent
3982407ba4
commit
137fbe495d
@ -300,10 +300,10 @@ int runsvdir_main(int argc, char **argv)
|
|||||||
stamplog = now + 900;
|
stamplog = now + 900;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
deadline = now + (check ? 1 : 5);
|
|
||||||
|
|
||||||
pfd[0].revents = 0;
|
pfd[0].revents = 0;
|
||||||
sig_block(SIGCHLD);
|
sig_block(SIGCHLD);
|
||||||
|
deadline = (check ? 1 : 5);
|
||||||
if (rplog)
|
if (rplog)
|
||||||
poll(pfd, 1, deadline*1000);
|
poll(pfd, 1, deadline*1000);
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user