xbps-src: cleanup signal handler catching SIGINT and SIGTERM.
- catching SIGHUP is meaningless. - there's no point in clearning wkrsrc or removing autodeps, this is left intact right now; this could be useful to have.
This commit is contained in:
parent
35da85f4eb
commit
b96e0ffe0a
1 changed files with 1 additions and 9 deletions
10
xbps-src
10
xbps-src
|
@ -281,14 +281,6 @@ masterdir_zap() {
|
||||||
|
|
||||||
exit_func() {
|
exit_func() {
|
||||||
wait
|
wait
|
||||||
if [ -z "$XBPS_KEEP_ALL" ]; then
|
|
||||||
if [ -n "$IN_CHROOT" ]; then
|
|
||||||
remove_pkg_autodeps
|
|
||||||
fi
|
|
||||||
if [ -n "$sourcepkg" ]; then
|
|
||||||
remove_pkg_wrksrc
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
if [ -n "$sourcepkg" ]; then
|
if [ -n "$sourcepkg" ]; then
|
||||||
remove_pkg $XBPS_CROSS_BUILD
|
remove_pkg $XBPS_CROSS_BUILD
|
||||||
fi
|
fi
|
||||||
|
@ -535,7 +527,7 @@ fi
|
||||||
|
|
||||||
check_build_requirements
|
check_build_requirements
|
||||||
|
|
||||||
trap 'exit_func' INT TERM HUP
|
trap 'exit_func' INT TERM
|
||||||
|
|
||||||
#
|
#
|
||||||
# Main switch.
|
# Main switch.
|
||||||
|
|
Loading…
Reference in a new issue