]> git.sur5r.net Git - i3/i3/commitdiff
remove async-unsafe functions from signal handler
authorMichael Stapelberg <michael@stapelberg.de>
Thu, 27 Sep 2012 10:37:27 +0000 (12:37 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Thu, 27 Sep 2012 10:37:27 +0000 (12:37 +0200)
src/main.c

index 95498e34e5309ef1f8e2401d2e19521d234e97fd..3b29f7a8c5c05d3c7746ecedee0d7ab634936b78 100644 (file)
@@ -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);
 }