From a9fe7232a7b8786aaf42994d5c0485cb3a167e96 Mon Sep 17 00:00:00 2001
From: Guido Trotter <ultrotter@google.com>
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 <ultrotter@google.com>
Reviewed-by: Olivier Tharan <olive@google.com>
---
 lib/daemon.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/daemon.py b/lib/daemon.py
index 26f9cdfe7..5115837e2 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
-- 
GitLab