From edebdf33f061d1bd6e65db2ea6e45c511d51379f Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 3 Mar 2017 12:41:00 +0100 Subject: [PATCH] hydra-queue-runner: Handle SIGINT --- src/hydra-queue-runner/hydra-queue-runner.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/hydra-queue-runner/hydra-queue-runner.cc b/src/hydra-queue-runner/hydra-queue-runner.cc index 945de98d..924b4747 100644 --- a/src/hydra-queue-runner/hydra-queue-runner.cc +++ b/src/hydra-queue-runner/hydra-queue-runner.cc @@ -824,6 +824,9 @@ void State::unlock() void State::run(BuildID buildOne) { + /* Can't be bothered to shut down cleanly. Goodbye! */ + auto callback = createInterruptCallback([&]() { std::_Exit(0); }); + startedAt = time(0); this->buildOne = buildOne;