diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2017-04-08 20:39:46 -0500 |
---|---|---|
committer | Omar Vega Ramos <ovruni@gnu.org.pe> | 2017-04-08 20:39:46 -0500 |
commit | 517f2ac789fa4a3ba641334072c45a413437d01e (patch) | |
tree | 6a3abe6b78c5a42f90c9bb153f92fd99ee01d443 /pcr/strongswan/2222-charon-systemd-sighup.patch | |
parent | 536e96cef5fac5f6c2c670de4c4f7882862a9d72 (diff) | |
download | abslibre-517f2ac789fa4a3ba641334072c45a413437d01e.tar.gz abslibre-517f2ac789fa4a3ba641334072c45a413437d01e.tar.bz2 abslibre-517f2ac789fa4a3ba641334072c45a413437d01e.zip |
strongswan-5.5.2-1: updating version
Diffstat (limited to 'pcr/strongswan/2222-charon-systemd-sighup.patch')
-rw-r--r-- | pcr/strongswan/2222-charon-systemd-sighup.patch | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/pcr/strongswan/2222-charon-systemd-sighup.patch b/pcr/strongswan/2222-charon-systemd-sighup.patch deleted file mode 100644 index 544612c20..000000000 --- a/pcr/strongswan/2222-charon-systemd-sighup.patch +++ /dev/null @@ -1,33 +0,0 @@ -index 5c7bbd779..fc93e2182 100644 ---- a/src/charon-systemd/charon-systemd.c -+++ b/src/charon-systemd/charon-systemd.c -@@ -241,6 +241,7 @@ static int run() - sigset_t set; - - sigemptyset(&set); -+ sigaddset(&set, SIGHUP); - sigaddset(&set, SIGTERM); - sigprocmask(SIG_BLOCK, &set, NULL); - -@@ -262,6 +263,21 @@ static int run() - } - switch (sig) - { -+ case SIGHUP: -+ { -+ DBG1(DBG_DMN, "signal of type SIGHUP received. Reloading " -+ "configuration"); -+ if (lib->settings->load_files(lib->settings, lib->conf, FALSE)) -+ { -+ charon->load_loggers(charon, NULL, FALSE); -+ lib->plugins->reload(lib->plugins, NULL); -+ } -+ else -+ { -+ DBG1(DBG_DMN, "reloading config failed, keeping old"); -+ } -+ break; -+ } - case SIGTERM: - { - DBG1(DBG_DMN, "SIGTERM received, shutting down"); |