make dwl a subreaper

This commit is contained in:
Leonardo Hernández Hernández 2023-01-06 00:00:54 -06:00 committed by Leonardo Hernández Hernández
parent c64230b9f6
commit 507cd2e9fc
No known key found for this signature in database
GPG key ID: E538897EE11B9624

4
dwl.c
View file

@ -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();