aboutsummaryrefslogtreecommitdiffstats
path: root/src/starter/invokepluto.c
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2009-08-06 16:32:42 +0200
committerAndreas Steffen <andreas.steffen@strongswan.org>2009-08-06 16:32:52 +0200
commit3646c8a159d985352b2b0123f04afaf606e6a5b2 (patch)
treee053d29476f7a67e0a9638a19ebb7dad50b44579 /src/starter/invokepluto.c
parentdd83c6d490b9d293aaadf76ebf2391d138dca001 (diff)
downloadstrongswan-3646c8a159d985352b2b0123f04afaf606e6a5b2.tar.bz2
strongswan-3646c8a159d985352b2b0123f04afaf606e6a5b2.tar.xz
abort pluto or charon if initialization fails
Diffstat (limited to 'src/starter/invokepluto.c')
-rw-r--r--src/starter/invokepluto.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/starter/invokepluto.c b/src/starter/invokepluto.c
index 5ca1b45ab..08fb0657a 100644
--- a/src/starter/invokepluto.c
+++ b/src/starter/invokepluto.c
@@ -54,6 +54,11 @@ starter_pluto_sigchild(pid_t pid, int status)
(status == 64) ? "libstrongswan" : "pluto");
_stop_requested = 1;
}
+ else if (status == SS_RC_INITIALIZATION_FAILED)
+ {
+ plog("pluto has quit: initialization failed");
+ _stop_requested = 1;
+ }
if (!_stop_requested)
{
plog("pluto has died -- restart scheduled (%dsec)"