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