Merge pull request #47 from yandex/change-signal

terminate sends SIGTERM instead of SIGINT
This commit is contained in:
alexey-milovidov 2016-07-11 21:24:37 +03:00 committed by GitHub
commit 4cb7924b1e

View File

@ -535,7 +535,10 @@ BaseDaemon::~BaseDaemon()
void BaseDaemon::terminate()
{
getTaskManager().cancelAll();
ServerApplication::terminate();
if (::kill(Poco::Process::id(), SIGTERM) != 0)
{
throw Poco::SystemException("cannot terminate process");
}
}
void BaseDaemon::kill()