Reduced timeout in select_try() from 5s to 10ms.

This commit is contained in:
Ben Hoskings 2009-07-14 19:53:20 +10:00 committed by Suraj N. Kurapati
parent 1eb089d722
commit 6b8e7b16f6

4
proc.c
View file

@ -822,8 +822,8 @@ static int select_try( job_t *j )
int retval; int retval;
struct timeval tv; struct timeval tv;
tv.tv_sec=5; tv.tv_sec=0;
tv.tv_usec=0; tv.tv_usec=10000;
retval =select( maxfd+1, &fds, 0, 0, &tv ); retval =select( maxfd+1, &fds, 0, 0, &tv );
return retval > 0; return retval > 0;