[PATCH 02/20] [main] pull deactivate trigger in quit_program()
Scott James Remnant
scott at ubuntu.com
Thu Mar 18 13:24:57 PDT 2010
To avoid a "plymouth deactivate" command hanging forever in the case
of the program quitting, pull the trigger before the quit trigger.
---
src/main.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/main.c b/src/main.c
index bc896a0..62af0a9 100644
--- a/src/main.c
+++ b/src/main.c
@@ -702,6 +702,11 @@ quit_program (state_t *state)
}
#endif
+ if (state->deactivate_trigger != NULL)
+ {
+ ply_trigger_pull (state->deactivate_trigger, NULL);
+ state->deactivate_trigger = NULL;
+ }
if (state->quit_trigger != NULL)
{
ply_trigger_pull (state->quit_trigger, NULL);
--
1.7.0
More information about the plymouth
mailing list