Use constant instead of hardcoded value for sleeptime on failed fork call

darcs-hash:20070121152026-ac50b-1daaac921f31dd10b2646d51b65af5260890d291.gz
This commit is contained in:
axel 2007-01-22 01:20:26 +10:00
parent 86beb7b109
commit 4f67c38777

7
exec.c
View file

@ -66,6 +66,11 @@
*/
#define FORK_LAPS 5
/**
The number of nanoseconds to sleep between attempts to call fork()
*/
#define FORK_SLEEP_TIME 1000000
/**
Base open mode to pass to calls to open
*/
@ -721,7 +726,7 @@ static pid_t exec_fork()
}
pollint.tv_sec = 0;
pollint.tv_nsec = 1000000;
pollint.tv_nsec = FORK_SLEEP_TIME;
/*
Don't sleep on the final lap - sleeping might change the