2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-30 21:45:37 +00:00

Use os._exit() when exiting from a forked() child process, not sys.exit()

This commit is contained in:
Shane Kerr
2011-05-17 11:43:10 +02:00
parent 7c390c1149
commit 3303478b6f

View File

@@ -202,7 +202,7 @@ class SendNonblock(unittest.TestCase):
try:
def killall(signum, frame):
os.kill(queue_pid, signal.SIGTERM)
sys.exit(1)
os._exit(1)
signal.signal(signal.SIGALRM, killall)
msg = msgq.preparemsg({"type" : "ping"}, data)
now = time.clock()