From cb56b0b6eaa8bb8997cdc5be45744cb73d73ea88 Mon Sep 17 00:00:00 2001 From: Sven Velt Date: Sun, 20 Jun 2010 23:01:26 +0200 Subject: [PATCH] Added fork()ing to HTTP daemons Signed-off-by: Sven Velt --- nagixsc/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nagixsc/__init__.py b/nagixsc/__init__.py index 825d41d..321407b 100644 --- a/nagixsc/__init__.py +++ b/nagixsc/__init__.py @@ -475,7 +475,7 @@ def daemonize(pidfile=None, stdin='/dev/null', stdout='/dev/null', stderr='/dev/ ############################################################################## -class MyHTTPServer(BaseHTTPServer.HTTPServer): +class MyHTTPServer(SocketServer.ForkingMixIn, BaseHTTPServer.HTTPServer): def __init__(self, server_address, HandlerClass, ssl=False, sslpemfile=None): if ssl: # FIXME: SSL is in Py2.6 -- 2.30.2