]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[main] Ensure second quit blocks until quit processed
authorRay Strode <rstrode@redhat.com>
Mon, 22 Mar 2010 02:59:09 +0000 (22:59 -0400)
committerRay Strode <rstrode@redhat.com>
Mon, 22 Mar 2010 03:13:49 +0000 (23:13 -0400)
When it comes to quitting, which must be carefully coordinated
with other subsystems during the boot process, we need to make
sure the client doesn't return early.

src/main.c

index a4b6eba30c03a5520cd6e43bad41c590b57a6d8a..5f4327983e28cfa0ef9c4aad5c646d0af4293aec 100644 (file)
@@ -791,7 +791,10 @@ on_quit (state_t       *state,
 {
   if (state->quit_trigger != NULL)
     {
-      ply_trigger_pull (quit_trigger, NULL);
+      ply_trigger_add_handler (state->quit_trigger,
+                               (ply_trigger_handler_t)
+                               ply_trigger_pull,
+                               quit_trigger);
       return;
     }