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
..
2018-02-21 21:13:08 +00:00
2018-06-24 13:23:27 +00:00
2018-06-24 13:23:27 +00:00
2018-06-24 13:23:27 +00:00
2018-02-21 21:13:08 +00:00
2018-02-21 21:13:08 +00:00
2017-12-14 15:41:32 +00:00
2018-09-18 00:11:45 +00:00
2018-06-24 13:23:27 +00:00
2017-12-14 15:41:32 +00:00
2018-01-12 04:26:40 +00:00
2018-06-24 13:23:27 +00:00
2018-06-24 13:23:27 +00:00
2018-02-21 21:13:08 +00:00
2017-12-14 15:41:32 +00:00
2018-02-21 21:13:08 +00:00