From 07fc52893578b0bc530a2f10efaa3cfa5a9e4039 Mon Sep 17 00:00:00 2001
From: Guido Trotter <ultrotter@google.com>
Date: Fri, 17 Oct 2008 11:07:57 +0000
Subject: [PATCH] Mainloop: init sigchld_handler as None

There is no point in initializing sigchld_handler as an empty dict, when
it will be overwritten by an instance of utils.SignalHandler
immediately after.

Reviewed-by: iustinp
---
 lib/daemon.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/daemon.py b/lib/daemon.py
index 97c78087a..0f6f540e3 100644
--- a/lib/daemon.py
+++ b/lib/daemon.py
@@ -36,7 +36,7 @@ class Mainloop(object):
   def __init__(self):
     self._io_wait = []
     self._signal_wait = []
-    self.sigchld_handler = {}
+    self.sigchld_handler = None
 
   def Run(self):
     # TODO: Does not yet support adding new event sources while running
-- 
GitLab