projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6fb5847
)
initial support for no-mmu systems
author
Mike Frysinger
<vapier@gentoo.org>
Wed, 7 Jun 2006 21:48:43 +0000
(21:48 -0000)
committer
Mike Frysinger
<vapier@gentoo.org>
Wed, 7 Jun 2006 21:48:43 +0000
(21:48 -0000)
miscutils/watchdog.c
patch
|
blob
|
history
diff --git
a/miscutils/watchdog.c
b/miscutils/watchdog.c
index b9eabb14584777149b1e19779ae6cd726bfdef84..e8275e68e0baa3750247f338f9b8ef558c944f33 100644
(file)
--- 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);