From: Ray Strode Date: Fri, 8 Jun 2012 19:11:52 +0000 (-0400) Subject: splash: drop SIGINT handlers X-Git-Tag: 0.8.6~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bb46ffb90ade92d87d82fadcea3a0243c80dea79;p=thirdparty%2Fplymouth.git splash: drop SIGINT handlers They serve no real purpose. https://bugs.freedesktop.org/show_bug.cgi?id=42285 --- diff --git a/src/plugins/splash/fade-throbber/plugin.c b/src/plugins/splash/fade-throbber/plugin.c index 1b536300..02a77ec4 100644 --- a/src/plugins/splash/fade-throbber/plugin.c +++ b/src/plugins/splash/fade-throbber/plugin.c @@ -610,13 +610,6 @@ stop_animation (ply_boot_splash_plugin_t *plugin) redraw_views (plugin); } -static void -on_interrupt (ply_boot_splash_plugin_t *plugin) -{ - ply_event_loop_exit (plugin->loop, 1); - stop_animation (plugin); -} - static void detach_from_event_loop (ply_boot_splash_plugin_t *plugin) { @@ -817,10 +810,6 @@ show_splash_screen (ply_boot_splash_plugin_t *plugin, ply_event_loop_watch_for_exit (loop, (ply_event_loop_exit_handler_t) detach_from_event_loop, plugin); - ply_event_loop_watch_signal (plugin->loop, - SIGINT, - (ply_event_handler_t) - on_interrupt, plugin); if (!load_views (plugin)) { diff --git a/src/plugins/splash/script/plugin.c b/src/plugins/splash/script/plugin.c index f2fd2c7e..c5c1e169 100644 --- a/src/plugins/splash/script/plugin.c +++ b/src/plugins/splash/script/plugin.c @@ -355,13 +355,6 @@ stop_animation (ply_boot_splash_plugin_t *plugin) script_parse_op_free (plugin->script_main_op); } -static void -on_interrupt (ply_boot_splash_plugin_t *plugin) -{ - ply_event_loop_exit (plugin->loop, 1); - stop_animation (plugin); -} - static void detach_from_event_loop (ply_boot_splash_plugin_t *plugin) { @@ -432,11 +425,6 @@ show_splash_screen (ply_boot_splash_plugin_t *plugin, detach_from_event_loop, plugin); - ply_event_loop_watch_signal (plugin->loop, - SIGINT, - (ply_event_handler_t) - on_interrupt, plugin); - ply_trace ("starting boot animation"); return start_animation (plugin); } diff --git a/src/plugins/splash/space-flares/plugin.c b/src/plugins/splash/space-flares/plugin.c index 88d5a464..32412e0c 100644 --- a/src/plugins/splash/space-flares/plugin.c +++ b/src/plugins/splash/space-flares/plugin.c @@ -1262,13 +1262,6 @@ stop_animation (ply_boot_splash_plugin_t *plugin) } } -static void -on_interrupt (ply_boot_splash_plugin_t *plugin) -{ - ply_event_loop_exit (plugin->loop, 1); - stop_animation (plugin); -} - static void detach_from_event_loop (ply_boot_splash_plugin_t *plugin) { @@ -1697,11 +1690,6 @@ show_splash_screen (ply_boot_splash_plugin_t *plugin, detach_from_event_loop, plugin); - ply_event_loop_watch_signal (plugin->loop, - SIGINT, - (ply_event_handler_t) - on_interrupt, plugin); - ply_trace ("starting boot animation"); start_animation (plugin); diff --git a/src/plugins/splash/throbgress/plugin.c b/src/plugins/splash/throbgress/plugin.c index 09cec0d6..ee94261f 100644 --- a/src/plugins/splash/throbgress/plugin.c +++ b/src/plugins/splash/throbgress/plugin.c @@ -553,13 +553,6 @@ stop_animation (ply_boot_splash_plugin_t *plugin, ply_trigger_pull (trigger, NULL); } -static void -on_interrupt (ply_boot_splash_plugin_t *plugin) -{ - ply_event_loop_exit (plugin->loop, 1); - stop_animation (plugin, NULL); -} - static void detach_from_event_loop (ply_boot_splash_plugin_t *plugin) { @@ -682,11 +675,6 @@ show_splash_screen (ply_boot_splash_plugin_t *plugin, detach_from_event_loop, plugin); - ply_event_loop_watch_signal (plugin->loop, - SIGINT, - (ply_event_handler_t) - on_interrupt, plugin); - ply_trace ("starting boot animation"); start_animation (plugin); diff --git a/src/plugins/splash/two-step/plugin.c b/src/plugins/splash/two-step/plugin.c index 3b2a151b..53d9814e 100644 --- a/src/plugins/splash/two-step/plugin.c +++ b/src/plugins/splash/two-step/plugin.c @@ -784,13 +784,6 @@ stop_animation (ply_boot_splash_plugin_t *plugin, ply_trigger_pull (trigger, NULL); } -static void -on_interrupt (ply_boot_splash_plugin_t *plugin) -{ - ply_event_loop_exit (plugin->loop, 1); - stop_animation (plugin, NULL); -} - static void detach_from_event_loop (ply_boot_splash_plugin_t *plugin) { @@ -1016,11 +1009,6 @@ show_splash_screen (ply_boot_splash_plugin_t *plugin, detach_from_event_loop, plugin); - ply_event_loop_watch_signal (plugin->loop, - SIGINT, - (ply_event_handler_t) - on_interrupt, plugin); - ply_trace ("starting boot animations"); start_progress_animation (plugin);