From 85cb31315398b52ac68b3d30c9a936fb3a9ed3f5 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sun, 23 Jun 2013 22:14:39 +0200 Subject: [PATCH] reset shmlogname when disabling the log This makes the i3-dump-log error message more helpful. --- src/log.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/log.c b/src/log.c index 5530f66f..68131af8 100644 --- a/src/log.c +++ b/src/log.c @@ -167,6 +167,7 @@ void close_logbuffer(void) { close(logbuffer_shm); shm_unlink(shmlogname); logbuffer = NULL; + shmlogname = ""; } /* -- 2.39.5