summaryrefslogtreecommitdiff
path: root/networking/udhcp/common.c
diff options
context:
space:
mode:
authorDenis Vlasenko2007-05-03 23:39:35 +0000
committerDenis Vlasenko2007-05-03 23:39:35 +0000
commit6e6d331d97aa230625c9b50c73f5df9251b8df4b (patch)
treef5ad77208e9a8da163cb347b5e3ceea648a8b7e7 /networking/udhcp/common.c
parentf71d916b60079f2009a714e49cb3e83efedbfb77 (diff)
downloadbusybox-6e6d331d97aa230625c9b50c73f5df9251b8df4b.zip
busybox-6e6d331d97aa230625c9b50c73f5df9251b8df4b.tar.gz
udhcpc: stop deleting our own pidfile if we daemonize.
udhcp[cd]: stop using atexit magic fir pidfile removal.
Diffstat (limited to 'networking/udhcp/common.c')
-rw-r--r--networking/udhcp/common.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/networking/udhcp/common.c b/networking/udhcp/common.c
index 721888f..76f8bf7 100644
--- a/networking/udhcp/common.c
+++ b/networking/udhcp/common.c
@@ -24,16 +24,6 @@ long uptime(void)
return info.uptime;
}
-#if ENABLE_FEATURE_PIDFILE
-static const char *saved_pidfile;
-
-static void pidfile_delete(void)
-{
- if (saved_pidfile)
- remove_pidfile(saved_pidfile);
-}
-#endif
-
static void create_pidfile(const char *pidfile)
{
if (!pidfile)
@@ -43,12 +33,6 @@ static void create_pidfile(const char *pidfile)
bb_perror_msg("cannot create pidfile %s", pidfile);
return;
}
-#if ENABLE_FEATURE_PIDFILE
- /* lockf(pid_fd, F_LOCK, 0); */
- if (!saved_pidfile)
- atexit(pidfile_delete);
- saved_pidfile = pidfile;
-#endif
}
void udhcp_make_pidfile(const char *pidfile)