diff --git a/ww/managers/signal_manager.c b/ww/managers/signal_manager.c index 5b98afa..9cd5c95 100644 --- a/ww/managers/signal_manager.c +++ b/ww/managers/signal_manager.c @@ -45,6 +45,10 @@ void setSignalManager(signal_manager_t *sm) static void multiplexedSignalHandler(int signum) { + char message[50]; + int length = snprintf(message, sizeof(message), "SignalManager: Received signal %d\n", signum); + write(STDOUT_FILENO, message, length); + if (state->raise_defaults) { signal(signum, SIG_DFL); @@ -63,6 +67,8 @@ static void multiplexedSignalHandler(int signum) static void multiplexedSignalHandlerNoArg(void) { + static const char kMessage[] = "SignalManager: Executing exit callabck\n"; + write(STDOUT_FILENO, kMessage, sizeof(kMessage) - 1); for (unsigned int i = 0; i < state->handlers_len; i++) {