From e39be2ec4cff20c70c4ead81e55231094f2bfe5e Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Sun, 25 Mar 2012 23:28:51 +0000 Subject: (perform_command) simplify --- lib/Iurt/Process.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/Iurt/Process.pm') diff --git a/lib/Iurt/Process.pm b/lib/Iurt/Process.pm index 60bcdf1..696ac91 100644 --- a/lib/Iurt/Process.pm +++ b/lib/Iurt/Process.pm @@ -203,9 +203,7 @@ sub perform_command { $err = 0 if any { $_ == $err } @{$opt{error_ok}}; # kill pid watching log file size - if ($pid) { - kill_for_good($pid); - } + kill_for_good($pid) if $pid; if ($@) { # timed out # propagate unexpected errors -- cgit v1.2.1