summaryrefslogtreecommitdiff
path: root/networking/udhcp/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/udhcp/common.c')
-rw-r--r--networking/udhcp/common.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/networking/udhcp/common.c b/networking/udhcp/common.c
index 2c902fc..c2025e5 100644
--- a/networking/udhcp/common.c
+++ b/networking/udhcp/common.c
@@ -59,10 +59,7 @@ void udhcp_background(const char *pidfile)
/* hold lock during fork. */
pid_fd = pidfile_acquire(pidfile);
- if (daemon(0, 0) == -1) { /* bb_xdaemon? */
- perror("fork");
- exit(1);
- }
+ xdaemon(0, 0);
daemonized++;
pidfile_write_release(pid_fd);
#endif /* __uClinux__ */