diff options
-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); } } |