forked from lix-project/hydra
hydra-evaluator: Handle SIGINT
This makes "systemctl stop hydra-evaluator" work promptly again.
This commit is contained in:
parent
81ac547d2b
commit
52753e49c2
1 changed files with 3 additions and 0 deletions
|
@ -260,6 +260,9 @@ struct Evaluator
|
||||||
|
|
||||||
void run()
|
void run()
|
||||||
{
|
{
|
||||||
|
/* Can't be bothered to shut down cleanly. Goodbye! */
|
||||||
|
auto callback = createInterruptCallback([&]() { std::_Exit(0); });
|
||||||
|
|
||||||
std::thread reaperThread([&]() { reaper(); });
|
std::thread reaperThread([&]() { reaper(); });
|
||||||
|
|
||||||
std::thread monitorThread([&]() { databaseMonitor(); });
|
std::thread monitorThread([&]() { databaseMonitor(); });
|
||||||
|
|
Loading…
Reference in a new issue