Commit 2ddd45e5 authored by Max Kellermann's avatar Max Kellermann

test/run_neighbor_explorer: use ShutdownHandler to catch SIGINT/SIGTERM

parent 03c89c9c
......@@ -1967,6 +1967,7 @@ if ENABLE_NEIGHBOR_PLUGINS
test_run_neighbor_explorer_SOURCES = \
src/Log.cxx src/LogBackend.cxx \
test/ShutdownHandler.cxx test/ShutdownHandler.hxx \
test/run_neighbor_explorer.cxx
test_run_neighbor_explorer_LDADD = $(AM_LDADD) \
$(NEIGHBOR_LIBS) \
......
......@@ -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) */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment