Commit 2116b891 authored by Tiago Vignatti's avatar Tiago Vignatti Committed by Kristian Høgsberg
Browse files

compositor: Move signal handler initialization before module loading


Signed-off-by: default avatarTiago Vignatti <tiago.vignatti@intel.com>
parent 5884bcde
......@@ -2054,7 +2054,13 @@ int main(int argc, char *argv[])
display = wl_display_create();
ec = NULL;
loop = wl_display_get_event_loop(display);
wl_event_loop_add_signal(loop, SIGTERM, on_term_signal, ec);
wl_event_loop_add_signal(loop, SIGINT, on_term_signal, ec);
wl_event_loop_add_signal(loop, SIGQUIT, on_term_signal, ec);
wl_list_init(&child_process_list);
wl_event_loop_add_signal(loop, SIGCHLD, sigchld_handler, NULL);
if (!backend) {
if (getenv("WAYLAND_DISPLAY"))
......@@ -2095,14 +2101,6 @@ int main(int argc, char *argv[])
exit(EXIT_FAILURE);
}
loop = wl_display_get_event_loop(ec->wl_display);
wl_event_loop_add_signal(loop, SIGTERM, on_term_signal, ec);
wl_event_loop_add_signal(loop, SIGINT, on_term_signal, ec);
wl_event_loop_add_signal(loop, SIGQUIT, on_term_signal, ec);
wl_list_init(&child_process_list);
wl_event_loop_add_signal(loop, SIGCHLD, sigchld_handler, NULL);
wl_display_run(display);
if (xserver)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment