Skip to content

Commit d67a96b

Browse files
committed
Set daemon = True on the thread in the SMTP test server running while
running tests. This fixes the annoying problem of the python process staying alive after certain bugs in the test invocation or after a plain Ctrl + c. - Legacy-Id: 10718
1 parent 540ef74 commit d67a96b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ietf/utils/test_smtpserver.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ def start(self):
1414
"""Start the listening service"""
1515
self.exit_condition = []
1616
kwargs={'exit_condition':self.exit_condition,'timeout':1.0}
17-
self.thread = threading.Thread(target=self.wrap_loop,kwargs=kwargs )
17+
self.thread = threading.Thread(target=self.wrap_loop, kwargs=kwargs)
18+
self.thread.daemon = True
1819
self.thread.start()
1920

2021
def stop(self):

0 commit comments

Comments
 (0)