Commit 288f0861 authored by Jerry's avatar Jerry
Browse files

modify select fd handling logic


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac335@3172 e5f2f494-b856-4b98-b285-d166d9295462
parent b5fa0bf0
......@@ -362,13 +362,12 @@ class ZonemgrRefresh:
sys.stderr.write("[b10-zonemgr] Error with select(); %s\n" % e)
break
if not rlist: # timer timeout
continue
if self._read_sock in rlist: # awaken by shutdown socket
self._read_sock.recv(32)
return
if self._check_sock in rlist: # awaken by check socket
self._check_sock.recv(32)
for fd in rlist:
if fd == self._read_sock: # awaken by shutdown socket
self._read_sock.recv(32)
return
if fd == self._check_sock: # awaken by check socket
self._check_sock.recv(32)
def shutdown(self):
"""Stop the run_timer() loop. Block until the loop has finished. This must be
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment