fix: set line buffering

This commit is contained in:
Xtr126 2024-04-30 19:24:08 +05:30
parent 7656b3f2f5
commit 7b907bcbb9

3
cage.c
View file

@ -6,7 +6,7 @@
* See the LICENSE file accompanying this file.
*/
#define _POSIX_C_SOURCE 200112L
#define _GNU_SOURCE
#include "config.h"
@ -139,6 +139,7 @@ spawn_primary_client(struct cg_server *server, char *argv[], pid_t *pid_out, str
*sigchld_source = wl_event_loop_add_fd(event_loop, fd[0], mask, sigchld_handler, server);
wlr_log(WLR_DEBUG, "Child process created with pid %d", pid);
setlinebuf(stdout);
return true;
}