2
0
mirror of https://opendev.org/x/pyghmi synced 2026-04-02 00:03:30 +00:00

Set daemon for IO thread

The IO thread is meant to be a background task.  Mark it
as such to be treated properly on interpreter exit.

Change-Id: I73003625d014f823d26c55bdd22217e19f6bf1c9
This commit is contained in:
Jarrod Johnson
2020-02-28 13:10:51 -05:00
parent 6bc53a1546
commit ba8087a2ed

View File

@@ -391,6 +391,7 @@ class Session(object):
iothreadwaiters.append(initevt)
_IOWorker = define_worker()
iothread = _IOWorker()
iothread.daemon = True
iothread.start()
initevt.wait()
elif not iothreadready: