aboutsummaryrefslogtreecommitdiffstats
path: root/ulri
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2018-10-15 19:31:51 +0000
committerPascal Terjan <pterjan@mageia.org>2018-10-16 08:53:44 +0000
commit42894e0125505320327a16ba6c6e775ee2757f55 (patch)
treefa1021d66ca9dc11a8d7885ef74fdef5bd73ea69 /ulri
parent69e74732d254c75adc20afc25a8729ca568be832 (diff)
downloadiurt-42894e0125505320327a16ba6c6e775ee2757f55.tar
iurt-42894e0125505320327a16ba6c6e775ee2757f55.tar.gz
iurt-42894e0125505320327a16ba6c6e775ee2757f55.tar.bz2
iurt-42894e0125505320327a16ba6c6e775ee2757f55.tar.xz
iurt-42894e0125505320327a16ba6c6e775ee2757f55.zip
Use SIGTERM to kill iurt and install a handler
Diffstat (limited to 'ulri')
-rwxr-xr-xulri4
1 files changed, 2 insertions, 2 deletions
diff --git a/ulri b/ulri
index d493eaf..d859385 100755
--- a/ulri
+++ b/ulri
@@ -299,7 +299,7 @@ foreach my $prefix (keys %pkg_tree) {
# Everything is fine, build is continuing!
# Kill it if that package had failed on a mandatory arch
if (check_if_mandatory_arch_failed($media, $ent, $config)) {
- ssh($remote, "kill -14 $pid");
+ ssh($remote, "kill -TERM $pid");
$pkg_tree{$prefix}{media}{$media}{cancelled_arch}{$arch} = 1;
create_file("$done_dir/${prefix}_$arch.cancelled", "$bot $host");
}
@@ -307,7 +307,7 @@ foreach my $prefix (keys %pkg_tree) {
}
if ($timeout) {
plog('FAIL', "$bot timed out on $host/$arch ($seconds sec), killing it");
- ssh($remote, "kill -14 $pid");
+ ssh($remote, "kill -TERM $pid");
# Give it some time to die/cleanup
if ($seconds < 1.02 * $config->{faildelay}) {
next bot;