From: Michael Stapelberg Date: Sun, 23 Jun 2013 20:14:39 +0000 (+0200) Subject: reset shmlogname when disabling the log X-Git-Tag: 4.6~19 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=85cb31315398b52ac68b3d30c9a936fb3a9ed3f5;p=i3%2Fi3 reset shmlogname when disabling the log This makes the i3-dump-log error message more helpful. --- 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 = ""; } /*