projects
/
project
/
procd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
get rid of sleep() calls
[project/procd.git]
/
state.c
diff --git
a/state.c
b/state.c
index 618d75879051a3e042da6763f196a11e599a59d1..cf0c81d2c6f19e263eef3ae2a890684c19ead771 100644
(file)
--- a/
state.c
+++ b/
state.c
@@
-63,12
+63,11
@@
static void state_enter(void)
case STATE_SHUTDOWN:
LOG("- shutdown -\n");
procd_inittab_run("shutdown");
+ sync();
break;
case STATE_HALT:
LOG("- reboot -\n");
- sync();
- sleep(1);
reboot(reboot_event);
break;