summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--state.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/state.c b/state.c
index e5f0015..bba5966 100644
--- a/state.c
+++ b/state.c
@@ -94,6 +94,8 @@ void procd_state_next(void)
void procd_shutdown(int event)
{
+ if (state >= STATE_SHUTDOWN)
+ return;
DEBUG(2, "Shutting down system with event %x\n", event);
reboot_event = event;
state = STATE_SHUTDOWN;