From 1cbf6655816e50e6729de53671d3b5dca404120a Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Thu, 27 Sep 2012 12:37:27 +0200 Subject: [PATCH] remove async-unsafe functions from signal handler --- src/main.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/main.c b/src/main.c index 95498e34..3b29f7a8 100644 --- a/src/main.c +++ b/src/main.c @@ -233,12 +233,9 @@ static void i3_exit(void) { * */ static void handle_signal(int sig, siginfo_t *info, void *data) { - fprintf(stderr, "Received signal %d, terminating\n", sig); if (*shmlogname != '\0') { - fprintf(stderr, "Closing SHM log \"%s\"\n", shmlogname); shm_unlink(shmlogname); } - fflush(stderr); raise(sig); }