fix more threading API usage

This commit is contained in:
Benjamin Peterson 2008-06-13 01:31:43 +00:00
parent 3d17a5c5ae
commit 2d9a086410

View file

@ -872,13 +872,13 @@ class Popen(object):
stdout = []
stdout_thread = threading.Thread(target=self._readerthread,
args=(self.stdout, stdout))
stdout_thread.setDaemon(True)
stdout_thread.set_daemon(True)
stdout_thread.start()
if self.stderr:
stderr = []
stderr_thread = threading.Thread(target=self._readerthread,
args=(self.stderr, stderr))
stderr_thread.setDaemon(True)
stderr_thread.set_daemon(True)
stderr_thread.start()
if self.stdin: