mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-29 09:13:08 +00:00
Fix a bug that if children process over 32, sleep 1 second
This commit is contained in:
parent
fdda051859
commit
491bf3682e
@ -686,9 +686,9 @@ sub scan_process {
|
||||
$pipe_map{$child} = $cfd;
|
||||
}
|
||||
|
||||
do {
|
||||
while ($children >= 32) {
|
||||
sleep(1);
|
||||
} until ($children < 32);
|
||||
}
|
||||
}
|
||||
while($children > 0) {
|
||||
sleep(1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user