hydra-evaluator: Handle SIGINT

This makes "systemctl stop hydra-evaluator" work promptly again.
This commit is contained in:
Eelco Dolstra 2017-02-21 17:54:31 +01:00
parent 81ac547d2b
commit 52753e49c2
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -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(); });