From d48cdf1e04383006a9d53d46fb6c579fe7bf18f1 Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Sat, 26 Oct 2024 23:33:21 +0200 Subject: [PATCH] fix thread shutdown --- responder/util/cmd.py | 1 + 1 file changed, 1 insertion(+) diff --git a/responder/util/cmd.py b/responder/util/cmd.py index 27516168..35c615c9 100644 --- a/responder/util/cmd.py +++ b/responder/util/cmd.py @@ -92,6 +92,7 @@ def __init__(self, target: str, port: int = 5042, limit_max_requests: int = None # Allow the thread to be terminated when the main program exits. self.process = None + self.daemon = True # Setup signal handlers signal.signal(signal.SIGTERM, self._signal_handler)