diff options
author | Rob Landley | 2006-06-16 15:08:59 +0000 |
---|---|---|
committer | Rob Landley | 2006-06-16 15:08:59 +0000 |
commit | 1449a2014a4e715a7a52b27caec528a9c802fa5f (patch) | |
tree | 281bba4feed27caadd90981d70e713caedbf15f2 /patches/udhcpd_foreground.diff | |
parent | 747041955ed38fb14be3e5d0c3a946cfa74bc15e (diff) | |
download | busybox-1449a2014a4e715a7a52b27caec528a9c802fa5f.zip busybox-1449a2014a4e715a7a52b27caec528a9c802fa5f.tar.gz |
This directory was fallout from the great feature freeze of 2003, which led
up to the 1.00 release. I just moved what was left of it to
http://busybox.net/~landley/pending because it does _not_ belong in the
tree anymore.
Diffstat (limited to 'patches/udhcpd_foreground.diff')
-rw-r--r-- | patches/udhcpd_foreground.diff | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/patches/udhcpd_foreground.diff b/patches/udhcpd_foreground.diff deleted file mode 100644 index 3b8c7eb..0000000 --- a/patches/udhcpd_foreground.diff +++ /dev/null @@ -1,33 +0,0 @@ -Index: ./networking/udhcp/dhcpd.c -=================================================================== -RCS file: /var/cvs/busybox/networking/udhcp/dhcpd.c,v -retrieving revision 1.5 -diff -u -r1.5 dhcpd.c ---- a/./networking/udhcp/dhcpd.c 30 Jan 2004 23:45:12 -0000 1.5 -+++ b/./networking/udhcp/dhcpd.c 5 Mar 2004 13:09:05 -0000 -@@ -70,6 +70,13 @@ - struct dhcpOfferedAddr *lease; - int max_sock; - unsigned long num_ips; -+ int daemonize = 1; -+ -+ while (strcmp(argv[1],"-f")==0 || strcmp(argv[1],"--foreground")==0) { -+ daemonize = 0; -+ argv++; -+ argc--; -+ } - - memset(&server_config, 0, sizeof(struct server_config_t)); - read_config(argc < 2 ? DHCPD_CONF_FILE : argv[1]); -@@ -99,9 +106,8 @@ - &server_config.server, server_config.arp) < 0) - return 1; - --#ifndef UDHCP_DEBUG -- background(server_config.pidfile); /* hold lock during fork. */ --#endif -+ if(daemonize) -+ background(server_config.pidfile); /* hold lock during fork. */ - - /* Setup the signal pipe */ - udhcp_sp_setup(); |