From 52987b035496312c3855601b9c1bf6f30b8271f0 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Mon, 1 May 2023 19:39:17 +0100 Subject: [PATCH] frontend: Clean up wet_processes on exit When we exit, clean up any process we launched. Signed-off-by: Daniel Stone --- compositor/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/compositor/main.c b/compositor/main.c index ca009da2..2c894c6a 100644 --- a/compositor/main.c +++ b/compositor/main.c @@ -3882,6 +3882,7 @@ wet_main(int argc, char *argv[], const struct weston_testsuite_data *test_data) struct weston_log_context *log_ctx = NULL; struct weston_log_subscriber *logger = NULL; struct weston_log_subscriber *flight_rec = NULL; + struct wet_process *process, *process_tmp; void *wet_xwl = NULL; sigset_t mask; struct sigaction action; @@ -4198,6 +4199,9 @@ out: weston_log_scope_destroy(protocol_scope); protocol_scope = NULL; + wl_list_for_each_safe(process, process_tmp, &wet.child_process_list, link) + wet_process_destroy(process, 0, false); + out_signals: for (i = ARRAY_LENGTH(signals) - 1; i >= 0; i--) if (signals[i])