From e8ff755cba9e249d0e43212acbc0c3bf38af1622 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 21 Oct 2020 01:17:35 -0500 Subject: [PATCH] Promote watchdog. --- toys/{pending => other}/watchdog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename toys/{pending => other}/watchdog.c (96%) diff --git a/toys/pending/watchdog.c b/toys/other/watchdog.c similarity index 96% rename from toys/pending/watchdog.c rename to 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); } } -- 2.39.2