Verified Commit 7a59d005 authored by Tommaso Tocci's avatar Tommaso Tocci
Browse files

bugfix: do not trap normal exit on dl deps script

parent 3146765f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -8,13 +8,13 @@ COMMON_GIT_FLAGS="--quiet --single-branch"
# Stop all backround jobs on interruption.
# "kill -- -$$" sends a SIGTERM to the whole process group,
# thus killing also descendants.
trap "trap - SIGTERM && kill -- -$$" SIGINT SIGTERM EXIT
trap "trap - SIGTERM && kill -- -$$" SIGINT SIGTERM


exit_child() {
    if [ ! $? -eq 0 ]; then
        # notify the parent
        kill -s SIGTERM `ps --pid $$ -oppid=`
        kill -s SIGTERM -- -$$
    fi
}