be less agressive, but more verbose in killing charon
This commit is contained in:
@@ -78,9 +78,14 @@ starter_stop_charon (void)
|
|||||||
kill(pid, SIGINT);
|
kill(pid, SIGINT);
|
||||||
else if (i < 10)
|
else if (i < 10)
|
||||||
kill(pid, SIGTERM);
|
kill(pid, SIGTERM);
|
||||||
|
else if (i == 10)
|
||||||
|
{
|
||||||
|
kill(pid, SIGKILL);
|
||||||
|
plog("starter_stop_charon(): charon does not respond, sending KILL");
|
||||||
|
}
|
||||||
else
|
else
|
||||||
kill(pid, SIGKILL);
|
kill(pid, SIGKILL);
|
||||||
usleep(20000);
|
usleep(200000);
|
||||||
}
|
}
|
||||||
if (_charon_pid == 0)
|
if (_charon_pid == 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user