Browse Source

[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.
Michal 'vorner' Vaner 12 years ago
parent
commit
61a6cfae29
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/bin/zonemgr/zonemgr.py.in

+ 1 - 0
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,