all repos — fluxbox @ 42f647553a129e6bf5ce80567ce207da07049283

custom fork of the fluxbox windowmanager

fluxbox.cc: ifdef the signals windows doesn't have.
Ryan Pavlik rpavlik@iastate.edu
commit

42f647553a129e6bf5ce80567ce207da07049283

parent

b0779c413b2b8554224158a38e9921103724bf77

1 files changed, 8 insertions(+), 1 deletions(-)

jump to
M src/fluxbox.ccsrc/fluxbox.cc

@@ -289,13 +289,16 @@ //catch system signals

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 @@

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 @@ break;

case SIGUSR2: reconfigure(); break; +#endif case SIGSEGV: abort(); break; case SIGFPE: case SIGINT: +#ifndef _WIN32 case SIGPIPE: +#endif case SIGTERM: shutdown(); break;