Commit 92539674 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Slow down the rate at which capture tries to contact the server on

boss.
parent 37183376
......@@ -213,7 +213,8 @@ main(argc, argv)
if (runfile)
signal(SIGUSR1, newrun);
signal(SIGUSR2, terminate);
srandomdev();
/*
* Open up run/log file, console tty, and controlling pty.
*/
......@@ -452,12 +453,12 @@ capture()
#endif
fds = sfds;
timeout.tv_usec = 0;
timeout.tv_sec = 30;
#ifdef USESOCKETS
if (needshake)
timeout.tv_sec = 15;
else
if (needshake) {
timeout.tv_sec += (random() % 60);
}
#endif
timeout.tv_sec = 30;
i = select(fdcount, &fds, NULL, NULL, &timeout);
if (i < 0) {
if (errno == EINTR) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment