git: userland - dhclient - Fix possible infinite loop from unhandled poll(2) return

Samuel Greear sjg at crater.dragonflybsd.org
Wed Sep 8 18:23:41 PDT 2010


commit a05d48e6c7b12ad7abca8e3a3264413ac6f54003
Author: Samuel J. Greear <sjg at thesjg.com>
Date:   Thu Sep 9 01:19:09 2010 +0000

    userland - dhclient - Fix possible infinite loop from unhandled poll(2) return
    
    * This -probably- doesn't happen, but exercise some defensive programming
      here. This will prevent dhclient from running away and eating 100% cpu in the
      event of an error on the socket. Plus, we let the user know something went
      wrong.

Summary of changes:
 sbin/dhclient/dhclient.c |   15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/a05d48e6c7b12ad7abca8e3a3264413ac6f54003


-- 
DragonFly BSD source repository





More information about the Commits mailing list