fix set_daemon usage in subprocess

This commit is contained in:
Benjamin Peterson 2008-08-18 19:08:51 +00:00
parent f668214106
commit 632e0364d6
1 changed files with 2 additions and 2 deletions

View File

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