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