Skip to content

Commit 15460b3

Browse files
committed
Merged in [10718] from olau@iola.dk:
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: 10859 Note: SVN reference [10718] has been migrated to Git commit d67a96b
1 parent e4ce370 commit 15460b3

2 files changed

Lines changed: 4 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):

ready-for-merge

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
# --- Add entries at the top ---
99

10+
/branch/iola/community-list-cleanup-r10639@10718
11+
1012
/personal/housley/v6.14.2.dev0@10834
1113
/personal/housley/v6.8.1.dev0@10773
1214
/personal/housley/v6.8.1.dev0@10772

0 commit comments

Comments
 (0)