aboutsummaryrefslogtreecommitdiffstats
path: root/iurt
diff options
context:
space:
mode:
Diffstat (limited to 'iurt')
-rwxr-xr-xiurt6
1 files changed, 2 insertions, 4 deletions
diff --git a/iurt b/iurt
index 9008bdf..95aa89c 100755
--- a/iurt
+++ b/iurt
@@ -40,7 +40,7 @@ use URPM;
use Iurt::Urpmi;
use Iurt::Chroot qw(add_local_user create_temp_chroot remove_chroot create_build_chroot clean_chroot);
-use Iurt::Process qw(perform_command kill_for_good set_alarm_message sudo);
+use Iurt::Process qw(perform_command kill_for_good sudo);
use Iurt::Mail qw(sendmail);
use Iurt::Util qw(plog_init plog);
use File::NCopy qw(copy);
@@ -1082,11 +1082,9 @@ sub check_pid {
my $state = `ps h -o state $pid`;
chomp $state;
if ($time < time()-36000 || $state eq 'Z') {
- my $msg = "an other iurt pid $pid is running for a very long time or is zombie, killing it";
- plog($msg);
+ plog("an other iurt pid $pid is running for a very long time or is zombie, killing it");
my $i;
while ($i < 5 && getpgrp $pid != -1) {
- set_alarm_message($msg);
kill_for_good($pid);
$i++;
sleep 1;