Go to file
manu dd84686325 Fix buggy dhcrelay(8) requirement to stay in foreground
This version of dhcrelay(8) needed to stay inforeground with -d flag in
order to service requests. Running inbackground turned it deaf to DHCP
requests.

This was caused by wrong kqueue(2) usage, where kevent(2) was used with
a file descriptor obtained by a kqueue(2) call done before fork(2).
kqueue(2) man page says "The queue is not inherited by a child created
with fork(2)". As a result, kevent(2) calls always got EBADF.

The fix is to reorder function calls in dhcrelay(8) main() function.
dhcp_context_create(), which causes kqueue(2) to be invoked, is
moved with its dependencies after fork(2). This matches the code layout
of dhclient(8) and dhcpd(8), which do not have the bug.

The fix was not submitted upstream since latest ISC DHCP code was
refactored and does not have the bug anymore.
2017-06-05 07:35:23 +00:00
bin Another arithmetic expansion recordregion() fix, this time 2017-06-05 02:15:55 +00:00
common Comment alignment. No functional change. 2017-04-13 07:49:52 +00:00
compat Don't mix abis in any CRUNCHEDPROG 2017-01-05 21:28:42 +00:00
crypto Remove MKCRYPTO option. 2017-05-21 15:28:36 +00:00
dist/pf PR 50709 David Binderman: memory leak 2016-05-30 17:21:07 +00:00
distrib remove me. 2017-06-03 14:47:52 +00:00
doc zero out for 9.0 2017-06-04 07:18:39 +00:00
etc Create /dev/openfirm device for ofctl(8). 2017-06-02 22:20:21 +00:00
external Fix buggy dhcrelay(8) requirement to stay in foreground 2017-06-05 07:35:23 +00:00
extsrc
games Permit Prof. Steven Falcon [sic] to play hals_end(6) (or, more 2017-05-21 16:47:26 +00:00
include Add the new signalname/signalnext/signalnumber interface to libc. 2017-05-09 11:14:16 +00:00
lib Fix typo: s/interrput/interrupt/ 2017-06-03 19:41:14 +00:00
libexec Cosmetic changes to Lua binding in bozohttpd. 2017-05-28 22:37:36 +00:00
regress Remove regress lseek tests, obsoleted by ATF 2017-05-14 04:26:40 +00:00
rescue Remove MKCRYPTO option. 2017-05-21 15:28:36 +00:00
sbin Fix typo 2017-06-04 08:34:34 +00:00
share it's Rorschach, not Rorshach 2017-06-04 10:58:28 +00:00
sys Correct confusion between i_flag and i_flags 2017-06-05 01:29:21 +00:00
tests Paranoia: add a new test case testing that $(( )) results get split 2017-06-03 15:15:49 +00:00
tools Remove MKCRYPTO option. 2017-05-21 15:28:36 +00:00
usr.bin Fix typo: s/compatability/compatibility/ 2017-06-04 08:48:05 +00:00
usr.sbin remove my copyright. 2017-06-03 14:44:12 +00:00
build.sh - Allow all other targets (like kernel=) to obey mkrepro (-P) 2017-04-08 18:22:35 +00:00
BUILDING regen 2017-05-21 15:30:20 +00:00
Makefile don't descend into gnu 2017-04-11 14:04:15 +00:00
Makefile.inc
UPDATING New dhcpcd does not like update builds from previous versions. 2017-04-03 09:37:58 +00:00