mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-11-25 15:37:56 +00:00
src/parallel: exec sleep fails on qnx.
This commit is contained in:
parent
fb41b2384c
commit
63d2736740
|
@ -4571,10 +4571,8 @@ sub compute_number_of_processes {
|
||||||
# The child takes one process slot
|
# The child takes one process slot
|
||||||
# It will be killed later
|
# It will be killed later
|
||||||
$SIG{TERM} = $Global::original_sig{TERM};
|
$SIG{TERM} = $Global::original_sig{TERM};
|
||||||
# Exec 'sleep' to save RAM
|
sleep 10000000;
|
||||||
# 32000 seconds should be plenty, and should be supported
|
exit(0);
|
||||||
# on all platforms.
|
|
||||||
exec("sleep","32000");
|
|
||||||
} else {
|
} else {
|
||||||
# Failed to spawn
|
# Failed to spawn
|
||||||
$max_system_proc_reached = 1;
|
$max_system_proc_reached = 1;
|
||||||
|
|
Loading…
Reference in a new issue