diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-09-03 16:21:59 +0400 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-09-03 16:21:59 +0400 |
commit | 27af5a0dd34b1b392aa69b548e18935aafe66e5f (patch) | |
tree | 0de777f153dec72a0339c12d360e8bf156d17b45 /networking/udhcp | |
parent | 87d80dcc3e81d80caa11ed88fe6136ffe3e605dc (diff) |
replacing func() with xfunc() where appropriate
Diffstat (limited to 'networking/udhcp')
-rw-r--r-- | networking/udhcp/common.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/networking/udhcp/common.c b/networking/udhcp/common.c index 2c902fc01..c2025e588 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__ */ |