aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-buildpackage
diff options
context:
space:
mode:
authordancer <dancer>2002-08-24 06:40:52 +0000
committerdancer <dancer>2002-08-24 06:40:52 +0000
commit7a5e2f5ef4c35ff3a4326105f71b3cfcd73c6d47 (patch)
treecf3fadfd5f93a5a27ff329f41818caf6ff920803 /pbuilder-buildpackage
parent65d6114c77de3535533196d20138067faf920aa6 (diff)
downloadpbuilder-7a5e2f5ef4c35ff3a4326105f71b3cfcd73c6d47.tar
pbuilder-7a5e2f5ef4c35ff3a4326105f71b3cfcd73c6d47.tar.gz
+
+ * pbuilder-buildpackage (BUILD_PID): add error checking for "kill"
Diffstat (limited to 'pbuilder-buildpackage')
-rwxr-xr-xpbuilder-buildpackage4
1 files changed, 2 insertions, 2 deletions
diff --git a/pbuilder-buildpackage b/pbuilder-buildpackage
index af5a49e..a04a5d5 100755
--- a/pbuilder-buildpackage
+++ b/pbuilder-buildpackage
@@ -133,10 +133,10 @@ if [ -n ${TIMEOUT_TIME} ]; then
(
: Timeout process
sleep "${TIMEOUT_TIME}";
- kill ${BUILD_PID}
+ kill ${BUILD_PID} || true
echo " -> Terminating build process due to timeout "
) & # timeout process
- KILL_WAIT_PID="kill $!; echo \" -> Terminate timeout process\"; "
+ KILL_WAIT_PID="kill $! || true; echo \" -> Terminate timeout process\"; "
else
KILL_WAIT_PID=""
fi