From 507cd2e9fc5dd9187822c68c719b1f134bf351c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Hern=C3=A1ndez=20Hern=C3=A1ndez?= Date: Fri, 6 Jan 2023 00:00:54 -0600 Subject: [PATCH] make dwl a subreaper --- dwl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dwl.c b/dwl.c index 04df09f..d14e728 100644 --- a/dwl.c +++ b/dwl.c @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include @@ -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();