projects
/
feed
/
packages.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
openconnect: forward SIGINT to app
[feed/packages.git]
/
net
/
openconnect
/
files
/
openconnect-wrapper
diff --git
a/net/openconnect/files/openconnect-wrapper
b/net/openconnect/files/openconnect-wrapper
index 744e5a5cd00ee22a24ea10623a07757abbd15f86..082dfba73ae551ca9fdf36b9ebe2fc06f10de2d7 100755
(executable)
--- a/
net/openconnect/files/openconnect-wrapper
+++ b/
net/openconnect/files/openconnect-wrapper
@@
-22,7
+22,17
@@
cleanup()
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"
/usr/sbin/openconnect $* <$pwfile &