mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Merge branch 'ent-6193-Omnishell-ejecuciones-y-timeout' into 'develop'
Solve issue with timeout executions Closes pandora_enterprise#6193 See merge request artica/pandorafms!3404
This commit is contained in:
commit
a17fb4997f
@ -1678,7 +1678,7 @@ sub execute_command_timeout {
|
||||
};
|
||||
|
||||
my $result = ($?>>8);
|
||||
print $result;
|
||||
return $result;
|
||||
|
||||
# Exit child.
|
||||
# Child finishes.
|
||||
@ -1753,7 +1753,7 @@ sub execute_command_block {
|
||||
);
|
||||
|
||||
# Do not retry if success.
|
||||
last if looks_like_number($err_level) && $err_level == 0;
|
||||
$retries = 0 if looks_like_number($err_level) && $err_level == 0;
|
||||
|
||||
} while ((--$retries) > 0);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user