Make -L even more useful to monitoring processes. Truncate and
authorkrw <krw@openbsd.org>
Sun, 20 Apr 2014 21:25:07 +0000 (21:25 +0000)
committerkrw <krw@openbsd.org>
Sun, 20 Apr 2014 21:25:07 +0000 (21:25 +0000)
commit67be0c874d335805fcb0ef95189d098f494d4ce6
tree673b854dd97cb5a276da826151097c6c3c5747c6
parent77e000ffab217134f9601fb8bcdc81ff8f39df50
Make -L even more useful to monitoring processes. Truncate and
refill the file rather than creating a new one, which preserves
an fd being monitored. And truncate file on losing link.

Things like sysutils/ertn should now be able to see new leases, lease
renewals and cable unplugs.

tweaks by and ok sthen@
sbin/dhclient/dhclient.8
sbin/dhclient/dhclient.c