mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
Merge pull request #47 from yandex/change-signal
terminate sends SIGTERM instead of SIGINT
This commit is contained in:
commit
4cb7924b1e
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user