diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2009-08-06 16:32:42 +0200 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2009-08-06 16:32:52 +0200 |
commit | 3646c8a159d985352b2b0123f04afaf606e6a5b2 (patch) | |
tree | e053d29476f7a67e0a9638a19ebb7dad50b44579 /src/starter/invokepluto.c | |
parent | dd83c6d490b9d293aaadf76ebf2391d138dca001 (diff) | |
download | strongswan-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.c | 5 |
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)" |