mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-07-22 03:04:13 +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_context *log_ctx = NULL;
|
||||||
struct weston_log_subscriber *logger = NULL;
|
struct weston_log_subscriber *logger = NULL;
|
||||||
struct weston_log_subscriber *flight_rec = NULL;
|
struct weston_log_subscriber *flight_rec = NULL;
|
||||||
|
struct wet_process *process, *process_tmp;
|
||||||
void *wet_xwl = NULL;
|
void *wet_xwl = NULL;
|
||||||
sigset_t mask;
|
sigset_t mask;
|
||||||
struct sigaction action;
|
struct sigaction action;
|
||||||
|
@ -4198,6 +4199,9 @@ out:
|
||||||
weston_log_scope_destroy(protocol_scope);
|
weston_log_scope_destroy(protocol_scope);
|
||||||
protocol_scope = NULL;
|
protocol_scope = NULL;
|
||||||
|
|
||||||
|
wl_list_for_each_safe(process, process_tmp, &wet.child_process_list, link)
|
||||||
|
wet_process_destroy(process, 0, false);
|
||||||
|
|
||||||
out_signals:
|
out_signals:
|
||||||
for (i = ARRAY_LENGTH(signals) - 1; i >= 0; i--)
|
for (i = ARRAY_LENGTH(signals) - 1; i >= 0; i--)
|
||||||
if (signals[i])
|
if (signals[i])
|
||||||
|
|
Loading…
Reference in a new issue