summaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer2006-05-31 10:19:51 +0000
committerBernhard Reutner-Fischer2006-05-31 10:19:51 +0000
commitc418d482baf414ef3f08a95ab99da7091f358b89 (patch)
tree4bcf7032041b501464f38ff9715f98453bebcbaf /networking
parent507cd755a44628ced60acfa568b402cdf2f5547b (diff)
downloadbusybox-c418d482baf414ef3f08a95ab99da7091f358b89.zip
busybox-c418d482baf414ef3f08a95ab99da7091f358b89.tar.gz
- s/defined(__uClinux__)/BB_NOMMU/
This needs a second pass to: + add bb_daemon(unsigned char no_chdir, unsigned char no_close, const char*flag) + eventually globally export argc and argv, so we don't need to pass it to bb_daemon().
Diffstat (limited to 'networking')
-rw-r--r--networking/dnsd.c8
-rw-r--r--networking/inetd.c6
2 files changed, 7 insertions, 7 deletions
diff --git a/networking/dnsd.c b/networking/dnsd.c
index 58a8fc1..f8bd07e 100644
--- a/networking/dnsd.c
+++ b/networking/dnsd.c
@@ -92,7 +92,7 @@ static void convname(char *a, uint8_t *q)
}
/*
- * Insert length of substrings insetad of dots
+ * Insert length of substrings instead of dots
*/
static void undot(uint8_t * rip)
{
@@ -393,12 +393,12 @@ int dnsd_main(int argc, char **argv)
}
if(is_daemon())
-#if defined(__uClinux__)
+#ifdef BB_NOMMU
/* reexec for vfork() do continue parent */
vfork_daemon_rexec(1, 0, argc, argv, "-d");
-#else /* uClinux */
+#else
bb_xdaemon(1, 0);
-#endif /* uClinuvx */
+#endif
dnsentryinit(is_verbose());
diff --git a/networking/inetd.c b/networking/inetd.c
index 3ecd322..b9ff4de 100644
--- a/networking/inetd.c
+++ b/networking/inetd.c
@@ -1309,12 +1309,12 @@ inetd_main (int argc, char *argv[])
bb_error_msg_and_die ("non-root must specify a config file");
if (!(opt & 2)) {
-#if defined(__uClinux__)
+#ifdef BB_NOMMU
/* reexec for vfork() do continue parent */
vfork_daemon_rexec (0, 0, argc, argv, "-f");
#else
- daemon (0, 0); /* bb_xdaemon? */
-#endif /* uClinux */
+ bb_xdaemon (0, 0);
+#endif
} else {
setsid ();
}