aboutsummaryrefslogtreecommitdiff
path: root/networking/dnsd.c
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-04-12 18:09:26 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-04-12 18:09:26 +0000
commit2c99851181a652358aa3ca58ef38c57e46ae02e4 (patch)
tree6893f7992748817b64ec66947adc2ca40e13fb8e /networking/dnsd.c
parentdac7ff15b7d32deeeef3d9665744fc5774c21d70 (diff)
downloadbusybox-w32-2c99851181a652358aa3ca58ef38c57e46ae02e4.tar.gz
busybox-w32-2c99851181a652358aa3ca58ef38c57e46ae02e4.tar.bz2
busybox-w32-2c99851181a652358aa3ca58ef38c57e46ae02e4.zip
- patch from Denis Vlasenko to add and use bb_xdaemon()
Diffstat (limited to 'networking/dnsd.c')
-rw-r--r--networking/dnsd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/networking/dnsd.c b/networking/dnsd.c
index 9c5193820..d78ea04c0 100644
--- a/networking/dnsd.c
+++ b/networking/dnsd.c
@@ -5,6 +5,7 @@
5 * Copyright (C) 2005 Roberto A. Foglietta (me@roberto.foglietta.name) 5 * Copyright (C) 2005 Roberto A. Foglietta (me@roberto.foglietta.name)
6 * Copyright (C) 2005 Odd Arild Olsen (oao at fibula dot no) 6 * Copyright (C) 2005 Odd Arild Olsen (oao at fibula dot no)
7 * Copyright (C) 2003 Paul Sheer 7 * Copyright (C) 2003 Paul Sheer
8 *
8 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 9 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
9 * 10 *
10 * Odd Arild Olsen started out with the sheerdns [1] of Paul Sheer and rewrote 11 * Odd Arild Olsen started out with the sheerdns [1] of Paul Sheer and rewrote
@@ -408,9 +409,7 @@ int dnsd_main(int argc, char **argv)
408 /* reexec for vfork() do continue parent */ 409 /* reexec for vfork() do continue parent */
409 vfork_daemon_rexec(1, 0, argc, argv, "-d"); 410 vfork_daemon_rexec(1, 0, argc, argv, "-d");
410#else /* uClinux */ 411#else /* uClinux */
411 if (daemon(1, 0) < 0) { 412 bb_xdaemon(1, 0);
412 bb_perror_msg_and_die("daemon");
413 }
414#endif /* uClinuvx */ 413#endif /* uClinuvx */
415 414
416 dnsentryinit(is_verbose()); 415 dnsentryinit(is_verbose());