fix the SHM log size
This commit is contained in:
parent
d034248de0
commit
f7a73f4a68
|
@ -39,7 +39,7 @@ char *errorfilename;
|
||||||
char *shmlogname = "";
|
char *shmlogname = "";
|
||||||
/* Size limit for the SHM log, by default 25 MiB. Can be overwritten using the
|
/* Size limit for the SHM log, by default 25 MiB. Can be overwritten using the
|
||||||
* flag --shmlog-size. */
|
* flag --shmlog-size. */
|
||||||
int shmlog_size = 25 * 1024 * 1024;
|
int shmlog_size = 0;
|
||||||
/* If enabled, logbuffer will point to a memory mapping of the i3 SHM log. */
|
/* If enabled, logbuffer will point to a memory mapping of the i3 SHM log. */
|
||||||
static char *logbuffer;
|
static char *logbuffer;
|
||||||
/* A pointer (within logbuffer) where data will be written to next. */
|
/* A pointer (within logbuffer) where data will be written to next. */
|
||||||
|
|
|
@ -284,8 +284,7 @@ int main(int argc, char *argv[]) {
|
||||||
debug_build = ((strchr(I3_VERSION, '(') - I3_VERSION) > 10);
|
debug_build = ((strchr(I3_VERSION, '(') - I3_VERSION) > 10);
|
||||||
|
|
||||||
/* On non-release builds, disable SHM logging by default. */
|
/* On non-release builds, disable SHM logging by default. */
|
||||||
if (!debug_build)
|
shmlog_size = (debug_build ? 25 * 1024 * 1024 : 0);
|
||||||
shmlog_size = 0;
|
|
||||||
|
|
||||||
start_argv = argv;
|
start_argv = argv;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue