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
164 164
		}
165 165

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