projects
/
project
/
procd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix up watchdog init code
[project/procd.git]
/
state.c
diff --git
a/state.c
b/state.c
index cf0c81d2c6f19e263eef3ae2a890684c19ead771..71890a26847024091c116a399e9d6e09c1bbc5fa 100644
(file)
--- a/
state.c
+++ b/
state.c
@@
-46,6
+46,9
@@
static void state_enter(void)
break;
case STATE_INIT:
+ // check if the wdt appeared during coldplug
+ if (!watchdog_fd())
+ watchdog_init();
LOG("- init -\n");
log_init();
procd_connect_ubus();