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 brctl: use a single buffer for brname and ifname 2018-10-01 22:45:36 +02:00
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 ftpd: allow -A if !FTPD_AUTHENTICATION as well 2018-04-07 14:18:42 +02:00
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 httpd: do not default to Content-type: application/octet-stream 2018-04-07 01:13:30 +02:00
ifconfig.c networking/interface.c: get rid of global "smallint interface_opt_a" 2018-03-05 17:46:17 +01:00
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 inetd: suppress aliasing warning 2018-12-08 15:35:24 +01:00
interface.c networking/interface.c: get rid of global data 2018-03-05 18:30:33 +01:00
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 regularize format of source file headers, no code changes 2017-09-18 16:28:43 +02:00
nbd-client.c config: update size information 2018-12-28 03:20:17 +01:00
nc_bloaty.c nc: fix the !NC_SERVER configuration 2018-05-24 16:38:40 +02:00
nc.c whitespace and comment format fixes, no code changes 2017-10-05 15:19:25 +02:00
netstat.c netstat: produce numeric-ip output for non-resolved names 2018-03-27 23:28:53 +02:00
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 fix a thinko in parse_pasv_epsv.c 2018-02-06 17:11:15 +01:00
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: shrink per-host rate-limiting code 2018-02-27 13:03:44 +01:00
tcpudp_perhost.h tcpudp: shrink per-host rate-limiting code 2018-02-27 13:03:44 +01:00
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: in AES-CBC code, do not set key for every record - do it once 2018-11-23 18:02:44 +01:00
tls_aes.h tls: in AES-CBC code, do not set key for every record - do it once 2018-11-23 18:02:44 +01:00
tls_aesgcm.c tls: AES-GCM: in GMULT, avoid memcpy, use one less variable in bit loop 2018-12-08 21:24:38 +01:00
tls_aesgcm.h tls: in AES-GCM decoding, avoid memmove 2018-11-24 13:51:46 +01:00
tls_fe.c tls: code shrink 2019-01-10 20:18:02 +01:00
tls_fe.h tls: add support for TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 cipher 2018-11-23 17:48:07 +01:00
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: do not leak RSA key 2018-11-25 16:17:26 +01:00
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 tls: speed up xor'ing of aligned 16-byte buffers 2018-11-24 14:08:29 +01:00
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