mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-30 01:26:38 +00:00
Merge pull request #1239 from chenglch/aasn
Change sleep time from 0.1 to 1 as float value is not support by default
This commit is contained in:
commit
6824226606
@ -1429,11 +1429,11 @@ sub enable_TFTPhpa
|
||||
foreach my $pid (keys %pids_map) {
|
||||
if (xCAT::Utils->is_process_exists($pid)) {
|
||||
$count++;
|
||||
if($count >= 50) {
|
||||
xCAT::MsgUtils->message("S","Error: can not stop tftp process in 5 seconds.");
|
||||
if($count > 5) {
|
||||
xCAT::MsgUtils->message("S","ERROR: Can not stop tftp process in 5 seconds.");
|
||||
return 1;
|
||||
}
|
||||
sleep 0.1;
|
||||
sleep 1;
|
||||
} else {
|
||||
delete $pids_map{$pid}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user