summaryrefslogtreecommitdiff
path: root/networking/udhcp
diff options
context:
space:
mode:
authorDenis Vlasenko2006-09-03 12:21:59 +0000
committerDenis Vlasenko2006-09-03 12:21:59 +0000
commit27af5a0dd34b1b392aa69b548e18935aafe66e5f (patch)
tree0de777f153dec72a0339c12d360e8bf156d17b45 /networking/udhcp
parent87d80dcc3e81d80caa11ed88fe6136ffe3e605dc (diff)
downloadbusybox-27af5a0dd34b1b392aa69b548e18935aafe66e5f.zip
busybox-27af5a0dd34b1b392aa69b548e18935aafe66e5f.tar.gz
replacing func() with xfunc() where appropriate
Diffstat (limited to 'networking/udhcp')
-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__ */