Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
2ddd45e5
Commit
2ddd45e5
authored
Jun 04, 2018
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test/run_neighbor_explorer: use ShutdownHandler to catch SIGINT/SIGTERM
parent
03c89c9c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
Makefile.am
Makefile.am
+1
-0
run_neighbor_explorer.cxx
test/run_neighbor_explorer.cxx
+2
-0
No files found.
Makefile.am
View file @
2ddd45e5
...
...
@@ -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)
\
...
...
test/run_neighbor_explorer.cxx
View file @
2ddd45e5
...
...
@@ -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) */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment