]> git.proxmox.com Git - grub2.git/commit
change stop condition to avoid infinite loops
authorPaulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
Tue, 21 Jan 2014 12:49:39 +0000 (10:49 -0200)
committerColin Watson <cjwatson@debian.org>
Sun, 14 Jun 2015 08:59:48 +0000 (09:59 +0100)
commitac5fca8816df0cdc0a429c0d80fdfe5c265240b3
treeeabc88ed23d46b95e6bd5ce8243c98600c2f02b1
parente880e335ae942ab90bd028762fb2f0771ac93001
change stop condition to avoid infinite loops

In net/net.c there is a while (1) that only exits if there is a stop
condition and more then 10 packages or if there is no package received.

If GRUB is idle and enter in this loop, the only condition to leave is
if it doesn't have incoming packages. In a network with heavy traffic
this never happens.

Origin: upstream, http://git.savannah.gnu.org/gitweb/?p=grub.git;a=commitdiff;h=d99d2f84166b0f60673d5c0714605a153946c0fc
Bug-Ubuntu: https://bugs.launchpad.net/bugs/1314134
Last-Update: 2014-04-29

Patch-Name: net-receive-packets-yield.patch
grub-core/net/net.c