OpenBSD/src vU7HrHJ — sbin/dhclient dhclient.c
Keep dhclient.leases.<if> O_EXLOCK file descriptor open for the lifefime of the dhclient instance. Use O_NONBLOCK so RTM_* messages are seen while trying to open the O_EXLOCK file descriptor. Prevents a possible race during startup, ensuring only one dhclient instance can be configuring an interface. Improves responsiveness to interface changes during startup.
Version | Delta | File | |
---|---|---|---|
1.645 | +3 | -4 | sbin/dhclient/dhclient.c |
+3 | -4 | 1 files |