mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
Use constant instead of hardcoded value for sleeptime on failed fork call
darcs-hash:20070121152026-ac50b-1daaac921f31dd10b2646d51b65af5260890d291.gz
This commit is contained in:
parent
86beb7b109
commit
4f67c38777
1 changed files with 6 additions and 1 deletions
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
|
||||
|
|
Loading…
Reference in a new issue