]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
make.sh: SIGKILL and SIGSTOP cannot be trapped
authorPeter Müller <peter.mueller@ipfire.org>
Wed, 16 Feb 2022 17:24:41 +0000 (17:24 +0000)
committerPeter Müller <peter.mueller@ipfire.org>
Wed, 16 Feb 2022 17:37:30 +0000 (17:37 +0000)
There is no sense in instructing "trap" to catch signals it cannot trap
whatsoever.

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
make.sh

diff --git a/make.sh b/make.sh
index dec918dd687ad6ffbf0a5811437eb9f60b7b6801..a6f44030cbd7f8631bd1794c1ad34741644ded18 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -437,7 +437,7 @@ prepareenv() {
        fi
 
        # Trap on emergency exit
-       trap "exiterror 'Build process interrupted'" SIGINT SIGTERM SIGKILL SIGSTOP SIGQUIT
+       trap "exiterror 'Build process interrupted'" SIGINT SIGTERM SIGQUIT
 
        # Checking if running as root user
        if [ $(id -u) -ne 0 ]; then