aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Iurt/Process.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Iurt/Process.pm')
-rw-r--r--lib/Iurt/Process.pm8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/Iurt/Process.pm b/lib/Iurt/Process.pm
index 29c8d4f..2a8e90e 100644
--- a/lib/Iurt/Process.pm
+++ b/lib/Iurt/Process.pm
@@ -255,12 +255,8 @@ sub perform_command {
while ($retry) {
$try++;
- if ($opt{retry} > 1) {
- $logfile = "$opt{log}/$opt{logname}-$try.$run->{run}.log";
- }
- if ($opt{log}) {
- $pid = fork_to_monitor($run, $config, $logfile, %opt);
- }
+ $logfile = "$opt{log}/$opt{logname}-$try.$run->{run}.log" if $opt{retry} > 1;
+ $pid = fork_to_monitor($run, $config, $logfile, %opt) if $opt{log};
eval {
# handle timeout: