summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-08-18 19:08:51 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-08-18 19:08:51 (GMT)
commit632e0364d6138d4e1e8e3a586c824bd21fe92514 (patch)
tree4ca7079818f2eff7c2e9e7573a776a1e17e5cff8
parentf6682141062efcfe2949cf876d48e61175a041a9 (diff)
downloadcpython-632e0364d6138d4e1e8e3a586c824bd21fe92514.zip
cpython-632e0364d6138d4e1e8e3a586c824bd21fe92514.tar.gz
cpython-632e0364d6138d4e1e8e3a586c824bd21fe92514.tar.bz2
fix set_daemon usage in subprocess
-rw-r--r--Lib/subprocess.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/subprocess.py b/Lib/subprocess.py
index d3e9692..ac92185 100644
--- a/Lib/subprocess.py
+++ b/Lib/subprocess.py
@@ -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: