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
|
||||
# It will be killed later
|
||||
$SIG{TERM} = $Global::original_sig{TERM};
|
||||
# Exec 'sleep' to save RAM
|
||||
# 32000 seconds should be plenty, and should be supported
|
||||
# on all platforms.
|
||||
exec("sleep","32000");
|
||||
sleep 10000000;
|
||||
exit(0);
|
||||
} else {
|
||||
# Failed to spawn
|
||||
$max_system_proc_reached = 1;
|
||||
|
|
Loading…
Reference in a new issue