aboutsummaryrefslogtreecommitdiff
path: root/sig.c
diff options
context:
space:
mode:
authorJames Yonan <james@openvpn.net>2010-12-13 09:27:08 +0000
committerDavid Sommerseth <davids@redhat.com>2011-03-25 09:38:48 +0100
commit7fc00d4cbe87206eea3ff5a8d12908c8c942f045 (patch)
treef912cf7fef1c9be191d2fadc0c05ac9a984da2d3 /sig.c
parentAdded "management-external-key" option. This option can be used (diff)
downloadopenvpn-7fc00d4cbe87206eea3ff5a8d12908c8c942f045.tar.xz
Misc fixes to r6708.
Fixed issue where "signal SIGTERM" entered from the management interface might get subsequently downgraded to a SIGUSR1. git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@6716 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'sig.c')
-rw-r--r--sig.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sig.c b/sig.c
index 631a3a8..d73525f 100644
--- a/sig.c
+++ b/sig.c
@@ -366,3 +366,11 @@ process_signal (struct context *c)
}
return ret;
}
+
+void
+register_signal (struct context *c, int sig, const char *text)
+{
+ if (c->sig->signal_received != SIGTERM)
+ c->sig->signal_received = sig;
+ c->sig->signal_text = text;
+}