remove async-unsafe functions from signal handler
This commit is contained in:
parent
9c01bdeef7
commit
1cbf665581
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue