diff options
-rw-r--r-- | src/starter/invokecharon.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/starter/invokecharon.c b/src/starter/invokecharon.c index c07de182e..3da407d50 100644 --- a/src/starter/invokecharon.c +++ b/src/starter/invokecharon.c @@ -78,9 +78,14 @@ starter_stop_charon (void) kill(pid, SIGINT); else if (i < 10) kill(pid, SIGTERM); + else if (i == 10) + { + kill(pid, SIGKILL); + plog("starter_stop_charon(): charon does not respond, sending KILL"); + } else kill(pid, SIGKILL); - usleep(20000); + usleep(200000); } if (_charon_pid == 0) return 0; |