X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fprocd.git;a=blobdiff_plain;f=state.c;fp=state.c;h=bba59665167df085bda91337dadb447332b4376d;hp=e5f0015befd380a8e469873030a3cf03f44abe63;hb=396a82c551ab02871ec0e6f399941c9379258bdc;hpb=c1a558f7d0c1e6c1ffa5a47d557a7b45205eef1d 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;