openconnect: forward SIGINT to app
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
This commit is contained in:
parent
d834e6c9c2
commit
a412f2cc46
2 changed files with 12 additions and 2 deletions
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=openconnect
|
PKG_NAME:=openconnect
|
||||||
PKG_VERSION:=6.00
|
PKG_VERSION:=6.00
|
||||||
PKG_RELEASE:=3
|
PKG_RELEASE:=4
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=ftp://ftp.infradead.org/pub/openconnect/
|
PKG_SOURCE_URL:=ftp://ftp.infradead.org/pub/openconnect/
|
||||||
|
|
|
@ -22,7 +22,17 @@ cleanup()
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
trap cleanup 1 2 3 6 15
|
cleanup2()
|
||||||
|
{
|
||||||
|
if ! test -z "$pid";then
|
||||||
|
kill -2 $pid
|
||||||
|
wait $pid
|
||||||
|
fi
|
||||||
|
exit 0
|
||||||
|
}
|
||||||
|
|
||||||
|
trap cleanup2 2
|
||||||
|
trap cleanup 1 3 6 15
|
||||||
|
|
||||||
rm -f "$pidfile"
|
rm -f "$pidfile"
|
||||||
/usr/sbin/openconnect $* <$pwfile &
|
/usr/sbin/openconnect $* <$pwfile &
|
||||||
|
|
Loading…
Reference in a new issue