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 10:39:05 +0000 (11:39 +0100)
commit3d306bffc5981b083ebb365c51e93c2231ff9b22
treec47a63aca8a473ae610ffb5aa2d8b8e9584e06fc
parent39dfb4de38fc5b31ca4472dbf45bcde3bb0d6e77
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