From bd4de509f77c7a9f7a5ecf92f74582e8ee42eb70 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Fri, 4 Dec 2020 12:48:39 +0000 Subject: Change misleading log lines --- lib/Iurt/Process.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Iurt/Process.pm b/lib/Iurt/Process.pm index dc25f99..2d1c060 100644 --- a/lib/Iurt/Process.pm +++ b/lib/Iurt/Process.pm @@ -184,7 +184,7 @@ sub handle_wait_regexp { sub generate_comment { my ($run, $config, $output, $command, $comment, $pipe, $kill, %opt) = @_; if ($kill && $opt{type} ne 'shell') { - $comment = "Command killed after $opt{timeout}s: $command\n"; + $comment = "Command killed: $command\n"; my ($cmd_to_kill) = $command =~ /sudo(?: chroot \S+)? (.*)/; clean_process($cmd_to_kill); } elsif ($pipe) { @@ -254,7 +254,7 @@ sub perform_command { eval { # handle timeout: local $SIG{ALRM} = sub { - print "Timeout! (timeout was $opt{timeout})\n"; + print "Killed! (probably because of the $opt{timeout} timeout)\n"; $kill = 1; die "alarm\n"; # NB: \n required }; -- cgit v1.2.1