summaryrefslogtreecommitdiff
path: root/wm/i3/patches/patch-src_main.c
blob: 7e6eea7137ee4878a3555dad011f4a72d3718ce2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
$NetBSD: patch-src_main.c,v 1.1.1.1 2013/02/12 23:25:35 tonnerre Exp $

--- src/main.c.orig	2012-12-11 23:08:17.000000000 +0000
+++ src/main.c
@@ -218,12 +218,6 @@ static void i3_exit(void) {
 #if EV_VERSION_MAJOR >= 4
     ev_loop_destroy(main_loop);
 #endif
-
-    if (*shmlogname != '\0') {
-        fprintf(stderr, "Closing SHM log \"%s\"\n", shmlogname);
-        fflush(stderr);
-        shm_unlink(shmlogname);
-    }
 }
 
 /*
@@ -233,9 +227,6 @@ static void i3_exit(void) {
  *
  */
 static void handle_signal(int sig, siginfo_t *info, void *data) {
-    if (*shmlogname != '\0') {
-        shm_unlink(shmlogname);
-    }
     raise(sig);
 }