aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/udhcp/common.c')
-rw-r--r--networking/udhcp/common.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/networking/udhcp/common.c b/networking/udhcp/common.c
index a0a21fdce..4c18e5d51 100644
--- a/networking/udhcp/common.c
+++ b/networking/udhcp/common.c
@@ -10,23 +10,11 @@
10 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 10 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
11 */ 11 */
12 12
13#include <fcntl.h>
14#include <unistd.h>
15#include <errno.h>
16#include <string.h>
17#include <stdlib.h>
18#include <signal.h>
19#include <paths.h>
20#include <sys/socket.h>
21#include <stdarg.h>
22#include <syslog.h> 13#include <syslog.h>
23 14
24#include "common.h" 15#include "common.h"
25#include "pidfile.h"
26 16
27 17
28static int daemonized;
29
30long uptime(void) 18long uptime(void)
31{ 19{
32 struct sysinfo info; 20 struct sysinfo info;
@@ -61,7 +49,6 @@ void udhcp_background(const char *pidfile)
61 pid_fd = pidfile_acquire(pidfile); 49 pid_fd = pidfile_acquire(pidfile);
62 setsid(); 50 setsid();
63 xdaemon(0, 0); 51 xdaemon(0, 0);
64 daemonized++;
65 logmode &= ~LOGMODE_STDIO; 52 logmode &= ~LOGMODE_STDIO;
66 pidfile_write_release(pid_fd); 53 pidfile_write_release(pid_fd);
67#endif /* __uClinux__ */ 54#endif /* __uClinux__ */