From: Michal 'vorner' Vaner Date: Mon, 3 Jun 2013 12:05:13 +0000 (+0200) Subject: [2292] Unrelated: fix possible in None bug (not reproduced) X-Git-Tag: bind10-1.2.0beta1-release~406^2~11 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=61a6cfae29c657daedd334fc2a157d57e85948a3;p=thirdparty%2Fkea.git [2292] Unrelated: fix possible in None bug (not reproduced) In case the EINTR would happen, the reads variable would contain None, making the in operator fail. --- diff --git a/src/bin/zonemgr/zonemgr.py.in b/src/bin/zonemgr/zonemgr.py.in index fcb929a411..71c7aae1c6 100755 --- a/src/bin/zonemgr/zonemgr.py.in +++ b/src/bin/zonemgr/zonemgr.py.in @@ -691,6 +691,7 @@ class Zonemgr: try: while not self._shutdown_event.is_set(): fileno = self._module_cc.get_socket().fileno() + reads = [] # Wait with select() until there is something to read, # and then read it using a non-blocking read # This may or may not be relevant data for this loop,