summaryrefslogtreecommitdiff
path: root/miscutils
diff options
context:
space:
mode:
authorMike Frysinger2006-06-07 21:48:43 +0000
committerMike Frysinger2006-06-07 21:48:43 +0000
commit9be7435203b9e86f936d2d993f6b6100cae3f10e (patch)
tree08583574dc81477d0a202c763df55e863038edbb /miscutils
parent6fb5847faf690099f6323a35bb0d4e41f65c0d3c (diff)
downloadbusybox-9be7435203b9e86f936d2d993f6b6100cae3f10e.zip
busybox-9be7435203b9e86f936d2d993f6b6100cae3f10e.tar.gz
initial support for no-mmu systems
Diffstat (limited to 'miscutils')
-rw-r--r--miscutils/watchdog.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/miscutils/watchdog.c b/miscutils/watchdog.c
index b9eabb1..e8275e6 100644
--- a/miscutils/watchdog.c
+++ b/miscutils/watchdog.c
@@ -37,7 +37,11 @@ int watchdog_main(int argc, char **argv)
if (optind < argc - 1 || argc == 1)
bb_show_usage();
+#ifdef BB_NOMMU
+ vfork_daemon(0, 1);
+#else
bb_xdaemon(0, 1);
+#endif
signal(SIGHUP, watchdog_shutdown);
signal(SIGINT, watchdog_shutdown);