2
0
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:
Xiaopeng Wang 2016-06-01 13:56:42 +08:00
commit 6824226606

View File

@ -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}
}