[projects/cleanbuild] Handle ctrl+c for build process
glen
glen at pld-linux.org
Sun Aug 29 15:57:55 CEST 2021
commit 6ecf9aecbdaa6659220d62bf52a6b889588299d2
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun Aug 29 16:09:20 2021 +0300
Handle ctrl+c for build process
bin/cleanbuild-docker.sh | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/bin/cleanbuild-docker.sh b/bin/cleanbuild-docker.sh
index f559e17..35fd773 100755
--- a/bin/cleanbuild-docker.sh
+++ b/bin/cleanbuild-docker.sh
@@ -129,6 +129,11 @@ package_build() {
notice "Build package"
docker exec $name cleanbuild/bin/teeboth $buildlog builder -bb --define '__spec_clean_body %{nil}' "$@" && rc=$? || rc=$?
+ # Kill processes on Ctrl+C
+ if [ "$rc" = 255 ]; then
+ docker exec $name pkill -e -u builder
+ die "Aborted" $rc
+ fi
findbr=$PACKAGE_NAME.findbr.log
builddir=$(docker exec $name sh -c 'test ! -d rpm/BUILD/* || echo rpm/BUILD/*')
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/cleanbuild.git/commitdiff/eb07c8d6582cadef8a50e97c53963501c981f4e9
More information about the pld-cvs-commit
mailing list