diff options
Diffstat (limited to 'networking/udhcp/common.c')
-rw-r--r-- | networking/udhcp/common.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/networking/udhcp/common.c b/networking/udhcp/common.c index a0a21fd..4c18e5d 100644 --- a/networking/udhcp/common.c +++ b/networking/udhcp/common.c @@ -10,23 +10,11 @@ * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. */ -#include <fcntl.h> -#include <unistd.h> -#include <errno.h> -#include <string.h> -#include <stdlib.h> -#include <signal.h> -#include <paths.h> -#include <sys/socket.h> -#include <stdarg.h> #include <syslog.h> #include "common.h" -#include "pidfile.h" -static int daemonized; - long uptime(void) { struct sysinfo info; @@ -61,7 +49,6 @@ void udhcp_background(const char *pidfile) pid_fd = pidfile_acquire(pidfile); setsid(); xdaemon(0, 0); - daemonized++; logmode &= ~LOGMODE_STDIO; pidfile_write_release(pid_fd); #endif /* __uClinux__ */ |