mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-28 01:11:15 -03:00
Use constant instead of hardcoded value for sleeptime on failed fork call
darcs-hash:20070121152026-ac50b-1daaac921f31dd10b2646d51b65af5260890d291.gz
This commit is contained in:
7
exec.c
7
exec.c
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user