From 27af5a0dd34b1b392aa69b548e18935aafe66e5f Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sun, 3 Sep 2006 12:21:59 +0000 Subject: replacing func() with xfunc() where appropriate --- networking/udhcp/common.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'networking/udhcp/common.c') 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__ */ -- cgit v1.2.3