1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-28 11:57:28 +00:00
freebsd/sbin/dhclient
Jilles Tjoelker 3b08e0fcf3 dhclient: Return non-zero status when script exits due to a signal
r343896 made it such that a non-zero exit status was passed through, but was
still wrong if the script exits on a signal. POSIX does not say what the
WEXITSTATUS macro returns in this case and in practice 0 is a common value.

Instead, translate the wait status into 8 bits the same way as the shell
calculates $?.

Reviewed by:	kib, Nash Kaminski
MFC after:	1 week
2019-02-08 23:03:28 +00:00
..
tests dhclient: raise WARNS to 4 2018-02-21 21:13:08 +00:00
alloc.c
bpf.c capsicum: use a new capsicum helpers in tools 2018-11-04 19:24:49 +00:00
clparse.c dhclient: build with WARNS=6 2018-06-24 13:23:27 +00:00
conflex.c dhclient: build with WARNS=6 2018-06-24 13:23:27 +00:00
convert.c
dhclient-script
dhclient-script.8
dhclient.8 dhclient: Don't chroot if we are in capability mode. 2018-08-06 16:22:01 +00:00
dhclient.c dhclient: Return non-zero status when script exits due to a signal 2019-02-08 23:03:28 +00:00
dhclient.conf Move dhclient.conf to sbin/dhclient/. 2018-09-18 00:11:45 +00:00
dhclient.conf.5 dhclient(8): allow to supersede interface-mtu option 2018-05-31 19:36:24 +00:00
dhclient.leases.5
dhcp-options.5
dhcp.h
dhcpd.h dhclient: build with WARNS=6 2018-06-24 13:23:27 +00:00
dhctoken.h
dispatch.c Make dhclient(8) verify if new MTU (option 26) differs from current one and skip unneeded MTU change. 2018-07-11 09:41:50 +00:00
errwarn.c dhclient: raise WARNS to 4 2018-02-21 21:13:08 +00:00
hash.c dhclient: raise WARNS to 4 2018-02-21 21:13:08 +00:00
inet.c dhclient(8): raise WARNS to 3 2017-12-14 15:41:32 +00:00
Makefile Move dhclient.conf to sbin/dhclient/. 2018-09-18 00:11:45 +00:00
Makefile.depend
options.c dhclient: build with WARNS=6 2018-06-24 13:23:27 +00:00
packet.c dhclient(8): raise WARNS to 3 2017-12-14 15:41:32 +00:00
parse.c dhclient(8): add missing include 2018-01-12 04:26:40 +00:00
privsep.c dhclient: build with WARNS=6 2018-06-24 13:23:27 +00:00
privsep.h dhclient: build with WARNS=6 2018-06-24 13:23:27 +00:00
tables.c dhclient: raise WARNS to 4 2018-02-21 21:13:08 +00:00
tree.c dhclient(8): raise WARNS to 3 2017-12-14 15:41:32 +00:00
tree.h dhclient: raise WARNS to 4 2018-02-21 21:13:08 +00:00