Notice when link-timeout expires even if istty(STDERR) hints that dhclient has
authorkrw <krw@openbsd.org>
Thu, 4 Mar 2021 02:00:42 +0000 (02:00 +0000)
committerkrw <krw@openbsd.org>
Thu, 4 Mar 2021 02:00:42 +0000 (02:00 +0000)
commitff95ba1861c7b7092df036fe53dd9a9e7d4537bf
tree2a02aa3361d36c1c2b53af918fd37d8d4e25849b
parent74d96eee8bcd3d963e05905d713738ddf02a3912
Notice when link-timeout expires even if istty(STDERR) hints that dhclient has
already gone daemon. Sometimes it's just that 2>/dev/null or something has
been done.

Should fix problem with sysupgrade when an interface (e.g. a wired interface that
has no cable plugged in) never comes up.

Problem reported and debug info from kettenis@, Jean-Philippe Luigi, Thomas L. and
Markus Lude. Thanks!
sbin/dhclient/dhclient.c