diff options
Diffstat (limited to 'networking/udhcp/common.c')
-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) | |||
59 | 59 | ||
60 | /* hold lock during fork. */ | 60 | /* hold lock during fork. */ |
61 | pid_fd = pidfile_acquire(pidfile); | 61 | pid_fd = pidfile_acquire(pidfile); |
62 | if (daemon(0, 0) == -1) { /* bb_xdaemon? */ | 62 | xdaemon(0, 0); |
63 | perror("fork"); | ||
64 | exit(1); | ||
65 | } | ||
66 | daemonized++; | 63 | daemonized++; |
67 | pidfile_write_release(pid_fd); | 64 | pidfile_write_release(pid_fd); |
68 | #endif /* __uClinux__ */ | 65 | #endif /* __uClinux__ */ |