summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_common.sh
diff options
context:
space:
mode:
authorDaniel Shahaf <danielsh@apache.org>2016-12-03 12:56:20 +0000
committerHolger Levsen <holger@layer-acht.org>2016-12-03 14:09:24 +0100
commita5695fb1ded4595fcbd7d59338298cc4737f341f (patch)
treec8506f673cdabbbf25ca4e0f2d128866b0e997bb /bin/reproducible_common.sh
parent12d0c9e49cca5a0d4a2118b399d3fa80b3f93814 (diff)
downloadjenkins.debian.net-a5695fb1ded4595fcbd7d59338298cc4737f341f.tar.xz
reproducible Debian: log/irc signal name for convenience
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin/reproducible_common.sh')
-rwxr-xr-xbin/reproducible_common.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh
index 0daac6b8..7a4d523d 100755
--- a/bin/reproducible_common.sh
+++ b/bin/reproducible_common.sh
@@ -615,6 +615,11 @@ call_diffoscope() {
fi
;;
*)
+ # Process killed by signal exits with 128+${signal number}.
+ # 31 = SIGSYS = maximum signal number in signal(7)
+ if (( $RESULT > 128 )) && (( $RESULT <= 128+31 )); then
+ RESULT="$RESULT (SIG$(kill -l $(($RESULT - 128))))"
+ fi
msg="$(date -u) - Something weird happened when running $DIFFOSCOPE on $1/$2 (which exited with $RESULT) and I don't know how to handle it."
;;
esac