diff options
author | Max Kellermann <max@musicpd.org> | 2018-06-04 17:42:47 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-06-04 17:42:47 +0200 |
commit | 2ddd45e5e17e1d3c43cc97cb5a1aecaa338082e9 (patch) | |
tree | 3ef4398444807cd69afdce96848523ef080cb4e3 /test/run_neighbor_explorer.cxx | |
parent | 03c89c9cecb60624a30221af708f03f6381a4e16 (diff) |
test/run_neighbor_explorer: use ShutdownHandler to catch SIGINT/SIGTERM
Diffstat (limited to 'test/run_neighbor_explorer.cxx')
-rw-r--r-- | test/run_neighbor_explorer.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/run_neighbor_explorer.cxx b/test/run_neighbor_explorer.cxx index 770bf1956..1d48036d3 100644 --- a/test/run_neighbor_explorer.cxx +++ b/test/run_neighbor_explorer.cxx @@ -24,6 +24,7 @@ #include "neighbor/Glue.hxx" #include "fs/Path.hxx" #include "event/Loop.hxx" +#include "ShutdownHandler.hxx" #include "Log.hxx" #include <stdio.h> @@ -68,6 +69,7 @@ try { GlobalInit init; EventLoop loop; + const ShutdownHandler shutdown_handler(loop); /* read configuration file (mpd.conf) */ |