IDE: prevent IDE/CLI process surviving to sys.exit() by using deamon threads to monitor external processes output streams. wxPython4
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Fri, 03 Feb 2023 16:40:04 +0100
branchwxPython4
changeset 3722 ffce28009ad3
parent 3721 6365e33fb11f
child 3723 58c74d098f09
IDE: prevent IDE/CLI process surviving to sys.exit() by using deamon threads to monitor external processes output streams.
util/ProcessLogger.py
--- a/util/ProcessLogger.py	Thu Feb 02 17:48:51 2023 +0100
+++ b/util/ProcessLogger.py	Fri Feb 03 16:40:04 2023 +0100
@@ -47,6 +47,7 @@
         self.callback = callback
         self.endcallback = endcallback
         self.fd = fd
+        self.daemon = True
 
     def run(self):
         outchunk = None