Commit graph

4 commits

Author SHA1 Message Date
Yousong Zhou
dbc36c3092 openconnect: openconnect-wrapper: rewrite
- use exec directly to eliminate a level in the process tree
 - use "$@" instead of "$*" to pass arguments to openconnect

According to openconnect(8), openconnect will call vpnc-script to
cleanup before quit when it received SIGINT(2) and will quit immediately
when it received SIGTERM (the default signal by kill command)

Before and after the change, openconnect process will be killed first
with SIGINT sent from netifd.  This was decided by the
'proto_kill_command "$config" 2' notify call in the proto script.

SIGKILL is the only other signal that can be sent from netifd when the
process did not quit on SIGINT on time.  There should be no need to trap
on signal 1 3 6 9 (HUP QUIT ABRT KILL)

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-06-19 12:37:24 +08:00
Nikos Mavrogiannopoulos
a412f2cc46 openconnect: forward SIGINT to app
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2014-10-28 11:58:52 +01:00
Nikos Mavrogiannopoulos
fb536338aa openconnect: openconnect-wrapper would trap signals and send the correct one to server
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2014-09-01 01:09:39 +02:00
Nikos Mavrogiannopoulos
e9215bf85d openconnect: set config variable on teardown and correctly pass the password
This addresses https://dev.openwrt.org/ticket/16634

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2014-09-01 00:26:39 +02:00