aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2020-10-21 01:17:35 -0500
committerRob Landley <rob@landley.net>2020-10-21 01:17:35 -0500
commite8ff755cba9e249d0e43212acbc0c3bf38af1622 (patch)
treedabdf08d92f5505b213a15307692ded5c6640cf0
parent9c8b40514fc3adfe76cc60fe183ad162adbd327e (diff)
downloadtoybox-e8ff755cba9e249d0e43212acbc0c3bf38af1622.tar.gz
Promote watchdog.
-rw-r--r--toys/other/watchdog.c (renamed from toys/pending/watchdog.c)4
1 files changed, 2 insertions, 2 deletions
diff --git a/toys/pending/watchdog.c b/toys/other/watchdog.c
index 86444100..7a49c0b0 100644
--- a/toys/pending/watchdog.c
+++ b/toys/other/watchdog.c
@@ -8,7 +8,7 @@ USE_WATCHDOG(NEWTOY(watchdog, "<1>1Ft#=4<1T#=60<1", TOYFLAG_NEEDROOT|TOYFLAG_BIN
config WATCHDOG
bool "watchdog"
- default n
+ default y
depends on TOYBOX_FORK
help
usage: watchdog [-F] [-t SW_TIMER_S] [-T HW_TIMER_S] DEV
@@ -44,7 +44,7 @@ void watchdog_main(void)
// Now that we've got the watchdog device open, kick it periodically.
for (;;) {
- write(TT.fd, "\0", 1);
+ write(TT.fd, "", 1);
sleep(TT.t);
}
}