From 0ec824866ae5f8f157404dda3ad452f8ca4e480f Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Sun, 14 Jun 2009 16:00:36 -0400
Subject: [PATCH] Exit from prefork server without running the parent's
 cleanup.

---
 pytools/prefork.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pytools/prefork.py b/pytools/prefork.py
index 1e58c7e..8e27ecb 100644
--- a/pytools/prefork.py
+++ b/pytools/prefork.py
@@ -86,8 +86,8 @@ def _fork_server(sock):
     finally:
         sock.close()
 
-    import sys
-    sys.exit(0)
+    import os
+    os._exit(0)
 
 
 
-- 
GitLab