Project

General

Profile

Bug #2732 » 0001-dhclient-Update-linkstate-after-poll.patch

profmakx, 11/19/2014 04:41 PM

View differences:

sbin/dhclient/dispatch.c
}
if ((fds[0].revents & (POLLIN | POLLHUP))) {
/* XXX profmakx: I am not sure whether updating the linkstate
here is the best idea, but it being not up to date leads
to a busy loop */
ifi->linkstat = interface_status(ifi->name);
if (ifi && ifi->linkstat && ifi->rfdesc != -1)
got_one();
}
(2-2/2)