mirror of
https://codeberg.org/dwl/dwl.git
synced 2024-12-27 03:36:31 +00:00
make dwl a subreaper
This commit is contained in:
parent
c64230b9f6
commit
507cd2e9fc
1 changed files with 4 additions and 0 deletions
4
dwl.c
4
dwl.c
|
@ -9,6 +9,7 @@
|
|||
#include <signal.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/prctl.h>
|
||||
#include <sys/resource.h>
|
||||
#include <sys/wait.h>
|
||||
#include <time.h>
|
||||
|
@ -2741,6 +2742,9 @@ setup(void)
|
|||
|
||||
wlr_log_init(log_level, NULL);
|
||||
|
||||
/* Make dwl a subreaper */
|
||||
prctl(PR_SET_CHILD_SUBREAPER, 1);
|
||||
|
||||
/* The Wayland display is managed by libwayland. It handles accepting
|
||||
* clients from the Unix socket, manging Wayland globals, and so on. */
|
||||
dpy = wl_display_create();
|
||||
|
|
Loading…
Reference in a new issue