提交 4cb7924b 编写于 作者: A alexey-milovidov 提交者: GitHub

Merge pull request #47 from yandex/change-signal

terminate sends SIGTERM instead of SIGINT
......@@ -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()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册