initial support for no-mmu systems
authorMike Frysinger <vapier@gentoo.org>
Wed, 7 Jun 2006 21:48:43 +0000 (21:48 -0000)
committerMike Frysinger <vapier@gentoo.org>
Wed, 7 Jun 2006 21:48:43 +0000 (21:48 -0000)
miscutils/watchdog.c

index b9eabb14584777149b1e19779ae6cd726bfdef84..e8275e68e0baa3750247f338f9b8ef558c944f33 100644 (file)
@@ -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);