wmstatus: fix invocation of "brightness"

This commit is contained in:
Přemysl Eric Janouch 2017-01-01 13:58:27 +01:00
parent 047db4eb8c
commit 5fdeaa3531
Signed by: p
GPG Key ID: B715679E3A361BE6
1 changed files with 4 additions and 0 deletions

View File

@ -2078,6 +2078,10 @@ spawn (struct app_context *ctx, char *argv[])
if (ctx->nut_client.socket != -1)
posix_spawn_file_actions_addclose (&actions, ctx->nut_client.socket);
// That would mess up our JSON
posix_spawn_file_actions_addopen
(&actions, STDOUT_FILENO, "/dev/null", O_WRONLY, 0);
posix_spawnattr_t attr;
posix_spawnattr_init (&attr);
posix_spawnattr_setpgroup (&attr, 0);