Implement BuildHooksEnv for NoHooksLU
[ganeti-local] / lib / daemon.py
index 8e69b14..5115837 100644 (file)
@@ -132,6 +132,7 @@ class Mainloop(object):
           # Calculate timeout again if required
           if timeout_needs_update:
             timeout = self._CalcTimeout(time.time())
+            timeout_needs_update = False
 
           # Wait for I/O events
           try:
@@ -214,7 +215,7 @@ class Mainloop(object):
 
     """
     for owner in self._signal_wait:
-      owner.OnSignal(signal.SIGCHLD)
+      owner.OnSignal(signum)
 
   def RegisterIO(self, owner, fd, condition):
     """Registers a receiver for I/O notifications