From a9fe7232a7b8786aaf42994d5c0485cb3a167e96 Mon Sep 17 00:00:00 2001 From: Guido Trotter Date: Tue, 18 Aug 2009 17:53:31 +0200 Subject: [PATCH] Pass the correct signal to handlers Mainloop currently calls all handlers with the signal number harcoded to sigchild. Fixing this. Signed-off-by: Guido Trotter Reviewed-by: Olivier Tharan --- lib/daemon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/daemon.py b/lib/daemon.py index 26f9cdf..5115837 100644 --- a/lib/daemon.py +++ b/lib/daemon.py @@ -215,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 -- 1.7.10.4