udhcpd: clamp down huge auto_times to ~2M seconds, better EINTR poll handling
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 11 Mar 2018 10:34:44 +0000 (11:34 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 11 Mar 2018 22:04:05 +0000 (23:04 +0100)
commit62b7083c13a9afc16b872367db93f8a775164343
tree424d38263edf14ca4f2b46057be7ff3761851919
parent39bf15ba3e5d5a0f04eab05d4675241961bb333d
udhcpd: clamp down huge auto_times to ~2M seconds, better EINTR poll handling

EINTR _should_ only happen on two signals we trap, and safe_poll
_should_ work here just fine, but there were kernel bugs where spurious EINTRs
happen (e.g. on ptrace attach). Be safe.

function                                             old     new   delta
udhcpd_main                                         1437    1468     +31

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/udhcp/dhcpd.c