projects
/
project
/
procd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix procd not handling rapid reboot signals very well
[project/procd.git]
/
state.c
diff --git
a/state.c
b/state.c
index
e5f0015
..
bba5966
100644
(file)
--- 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;