mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-12 23:40:04 +00:00
debian: kill children if we exit unexpectedly
This commit is contained in:
parent
cf68dc731a
commit
73b34cb373
2
debian/util.sh
vendored
2
debian/util.sh
vendored
@ -305,6 +305,7 @@ build_all () {
|
||||
mkdir -p ../log
|
||||
> ../log/changes
|
||||
echo; echo; echo; echo
|
||||
trap 'echo "Killing children...">&2; for x in $(jobs -p); do kill $x; done' EXIT
|
||||
if [ "${orig:0:2}" = ".." ]; then
|
||||
for distro in $distros; do
|
||||
echo "Creating $distro dsc..." >&2
|
||||
@ -328,6 +329,7 @@ build_all () {
|
||||
done
|
||||
! $par || wait
|
||||
fi
|
||||
trap - EXIT
|
||||
cat ../log/changes
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user