From 42f647553a129e6bf5ce80567ce207da07049283 Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Fri, 28 Oct 2011 12:04:15 -0500 Subject: fluxbox.cc: ifdef the signals windows doesn't have. --- src/fluxbox.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/fluxbox.cc b/src/fluxbox.cc index ff44e9f..8260897 100644 --- a/src/fluxbox.cc +++ b/src/fluxbox.cc @@ -289,13 +289,16 @@ Fluxbox::Fluxbox(int argc, char **argv, SignalHandler &sigh = SignalHandler::instance(); sigh.registerHandler(SIGSEGV, this); sigh.registerHandler(SIGFPE, this); - sigh.registerHandler(SIGPIPE, this); // e.g. output sent to grep sigh.registerHandler(SIGTERM, this); sigh.registerHandler(SIGINT, this); +#ifndef _WIN32 + sigh.registerHandler(SIGPIPE, this); // e.g. output sent to grep sigh.registerHandler(SIGCHLD, this); sigh.registerHandler(SIGHUP, this); sigh.registerHandler(SIGUSR1, this); sigh.registerHandler(SIGUSR2, this); +#endif + // // setup timer // This timer is used to we can issue a safe reconfig command. @@ -891,6 +894,7 @@ void Fluxbox::handleSignal(int signum) { static int re_enter = 0; switch (signum) { +#ifndef _WIN32 case SIGCHLD: // we don't want the child process to kill us // more than one process may have terminated while (waitpid(-1, 0, WNOHANG | WUNTRACED) > 0); @@ -904,12 +908,15 @@ void Fluxbox::handleSignal(int signum) { case SIGUSR2: reconfigure(); break; +#endif case SIGSEGV: abort(); break; case SIGFPE: case SIGINT: +#ifndef _WIN32 case SIGPIPE: +#endif case SIGTERM: shutdown(); break; -- cgit v0.11.2