aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-03-25 23:28:51 +0000
committerThierry Vignaud <tv@mageia.org>2012-03-25 23:28:51 +0000
commite39be2ec4cff20c70c4ead81e55231094f2bfe5e (patch)
treedc1a43a8c5a407a93db651fff06c3689bf6e78e5
parentf4a993587398e02adf41a8d91460e60412860f64 (diff)
downloadiurt-e39be2ec4cff20c70c4ead81e55231094f2bfe5e.tar
iurt-e39be2ec4cff20c70c4ead81e55231094f2bfe5e.tar.gz
iurt-e39be2ec4cff20c70c4ead81e55231094f2bfe5e.tar.bz2
iurt-e39be2ec4cff20c70c4ead81e55231094f2bfe5e.tar.xz
iurt-e39be2ec4cff20c70c4ead81e55231094f2bfe5e.zip
(perform_command) simplify
-rw-r--r--lib/Iurt/Process.pm4
1 files changed, 1 insertions, 3 deletions
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