Skip to content

Commit

Permalink
Set daemon = True on the thread in the SMTP test server running while
Browse files Browse the repository at this point in the history
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
  • Loading branch information
OleLaursen committed Jan 20, 2016
1 parent 540ef74 commit d67a96b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ietf/utils/test_smtpserver.py
Expand Up @@ -14,7 +14,8 @@ def start(self):
"""Start the listening service"""
self.exit_condition = []
kwargs={'exit_condition':self.exit_condition,'timeout':1.0}
self.thread = threading.Thread(target=self.wrap_loop,kwargs=kwargs )
self.thread = threading.Thread(target=self.wrap_loop, kwargs=kwargs)
self.thread.daemon = True
self.thread.start()

def stop(self):
Expand Down

0 comments on commit d67a96b

Please sign in to comment.