busybox/networking
Andrey Mazo 87e216294a udhcpc: don't exit after backgrounding on -n -b
Currently, running "udhcpc -n -b" causes udhcpc to go to background and
then exit after some time unless a lease is obtained.

It's not very useful to do so
as the calling process doesn't know
if the lease was obtained or not anyway.

The code actually tries to favor "-b" over "-n",
but doesn't clear "-n" flag while clearing "-b" after backgrounding.

So, clear "-n" flag after going into background.
This effectively makes "-b" override "-n" completely
and "-n -b" behave the same as "-b".

This allows to override default "-n" option, passed to udhcpc by ifupdown,
without recompiling busybox.

URL: https://bugs.busybox.net/11691

Signed-off-by: Andrey Mazo <ahippo@yandex.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2019-02-27 08:27:47 +01:00
..
libiproute ip link: Fix vlan proto, closes 8261 and 11638 2019-01-22 15:22:05 +01:00
ssl_helper
ssl_helper-wolfssl
udhcp udhcpc: don't exit after backgrounding on -n -b 2019-02-27 08:27:47 +01:00
arp.c config: update size information 2018-12-28 03:20:17 +01:00
arping.c config: update size information 2018-12-28 03:20:17 +01:00
brctl.c
Config.src tls: introduce FEATURE_TLS_SHA1 to make SHA1 code optional 2018-12-10 16:14:58 +01:00
dnsd.c
ether-wake.c config: update size information 2018-12-28 03:20:17 +01:00
ftpd.c
ftpgetput.c config: update size information 2018-12-28 03:20:17 +01:00
hostname.c config: update size information 2018-12-28 03:20:17 +01:00
httpd_helpers.sh
httpd_indexcgi.c
httpd_post_upload.cgi
httpd_ssi.c
httpd.c
ifconfig.c
ifenslave.c
ifplugd.c config: update size information 2018-12-28 03:20:17 +01:00
ifupdown.c config: update size information 2018-12-28 03:20:17 +01:00
inetd.c
interface.c
ip.c config: update size information 2018-12-28 03:20:17 +01:00
ipcalc.c config: update size information 2018-12-28 03:20:17 +01:00
isrv_identd.c config: update size information 2018-12-28 03:20:17 +01:00
isrv.c
isrv.h
Kbuild.src
nameif.c
nbd-client.c config: update size information 2018-12-28 03:20:17 +01:00
nc_bloaty.c
nc.c
netstat.c
nslookup.c nslookup: return exitcode 1 on resolution errors 2019-01-09 13:38:57 +01:00
ntpd.c ntpd: increase SLEW_THRESHOLD from 0.125 to 0.5 2019-02-15 14:32:08 +01:00
ntpd.diff
parse_pasv_epsv.c
ping.c config: update size information 2018-12-28 03:20:17 +01:00
pscan.c config: update size information 2018-12-28 03:20:17 +01:00
route.c config: update size information 2018-12-28 03:20:17 +01:00
slattach.c config: update size information 2018-12-28 03:20:17 +01:00
ssl_client.c config: update size information 2018-12-28 03:20:17 +01:00
tc.c config: update size information 2018-12-28 03:20:17 +01:00
tcpudp_perhost.c
tcpudp_perhost.h
tcpudp.c config: update size information 2018-12-28 03:20:17 +01:00
telnet.c telnet: placate compiler's warning 2019-01-09 13:12:58 +01:00
telnetd.c telnetd: fix bad interaction with vhangup() from login 2019-01-06 19:06:01 +01:00
telnetd.ctrlSQ.patch
telnetd.IAC_test.sh
tftp.c config: more tweaks 2018-12-28 17:52:43 +01:00
tls_aes.c
tls_aes.h
tls_aesgcm.c
tls_aesgcm.h
tls_fe.c tls: code shrink 2019-01-10 20:18:02 +01:00
tls_fe.h
tls_pstm_montgomery_reduce.c tls: pstm code shrink 2019-01-01 15:40:43 +01:00
tls_pstm_mul_comba.c tls: pstm code shrink 2019-01-01 15:40:43 +01:00
tls_pstm_sqr_comba.c tls: pstm code shrink 2019-01-01 15:40:43 +01:00
tls_pstm.c tls: pstm code shrink 2019-01-01 15:40:43 +01:00
tls_pstm.h tls: pstm code shrink 2019-01-01 15:40:43 +01:00
tls_rsa.c tls: pstm code shrink 2019-01-01 15:40:43 +01:00
tls_rsa.h
tls_symmetric.h
tls.c tls: add comment about dl.fedoraproject.org needing secp256r1 ECC curve 2019-01-08 16:09:41 +01:00
tls.h
traceroute.c config: update size information 2018-12-28 03:20:17 +01:00
tunctl.c config: update size information 2018-12-28 03:20:17 +01:00
vconfig.c config: update size information 2018-12-28 03:20:17 +01:00
wget.c wget: detect when the length of received file is less than advertised 2019-01-21 13:53:26 +01:00
whois.c config: update size information 2018-12-28 03:20:17 +01:00
zcip.c config: update size information 2018-12-28 03:20:17 +01:00