From 632e0364d6138d4e1e8e3a586c824bd21fe92514 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Mon, 18 Aug 2008 19:08:51 +0000 Subject: fix set_daemon usage in subprocess --- Lib/subprocess.py | 4 ++-- 1 file 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: -- cgit v0.12