mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-07-09 04:15:47 +00:00
frontend: Clean up wet_processes on exit
When we exit, clean up any process we launched. Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
parent
388702c181
commit
52987b0354
|
@ -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])
|
||||
|
|
Loading…
Reference in New Issue
Block a user