aboutsummaryrefslogtreecommitdiffstats
path: root/src/sig_handlers.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-03 12:29:42 +0100
committerMax Kellermann <max@duempel.org>2009-01-03 12:29:42 +0100
commit96814397ad6a43780171d06c7df187da9afd86da (patch)
tree847194808603407cd3e96168298ebb2782f70aae /src/sig_handlers.c
parent2cf96abcc15873ec5770b5933a3a7b3d28af8bdc (diff)
downloadmpd-96814397ad6a43780171d06c7df187da9afd86da.tar.gz
mpd-96814397ad6a43780171d06c7df187da9afd86da.tar.xz
mpd-96814397ad6a43780171d06c7df187da9afd86da.zip
sig_handlers: disable on WIN32
WIN32 doesn't have POSIX signals. Disable the code. For a complete port, we will have to implement the WIN32 equivalent.
Diffstat (limited to '')
-rw-r--r--src/sig_handlers.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/sig_handlers.c b/src/sig_handlers.c
index 7713cb21a..7ec7ac21f 100644
--- a/src/sig_handlers.c
+++ b/src/sig_handlers.c
@@ -18,6 +18,9 @@
*/
#include "sig_handlers.h"
+
+#ifndef WIN32
+
#include "log.h"
#include "main.h"
#include "event_pipe.h"
@@ -52,8 +55,11 @@ handle_reload_event(void)
cycle_log_files();
}
+#endif
+
void initSigHandlers(void)
{
+#ifndef WIN32
struct sigaction sa;
sa.sa_flags = 0;
@@ -68,4 +74,5 @@ void initSigHandlers(void)
event_pipe_register(PIPE_EVENT_RELOAD, handle_reload_event);
sa.sa_handler = reload_signal_handler;
x_sigaction(SIGHUP, &sa);
+#endif
}