remove async-unsafe functions from signal handler

This commit is contained in:
Michael Stapelberg 2012-09-27 12:37:27 +02:00
parent 9c01bdeef7
commit 1cbf665581
1 changed files with 0 additions and 3 deletions

View File

@ -233,12 +233,9 @@ static void i3_exit(void) {
* *
*/ */
static void handle_signal(int sig, siginfo_t *info, void *data) { static void handle_signal(int sig, siginfo_t *info, void *data) {
fprintf(stderr, "Received signal %d, terminating\n", sig);
if (*shmlogname != '\0') { if (*shmlogname != '\0') {
fprintf(stderr, "Closing SHM log \"%s\"\n", shmlogname);
shm_unlink(shmlogname); shm_unlink(shmlogname);
} }
fflush(stderr);
raise(sig); raise(sig);
} }