<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/subprocess.py, branch 3.8</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/subprocess.py?h=3.8</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/subprocess.py?h=3.8'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2023-02-09T10:00:51Z</updated>
<entry>
<title>[3.8] gh-101283: Improved fallback logic for subprocess with shell=True on Windows (GH-101286) (#101710)</title>
<updated>2023-02-09T10:00:51Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2023-02-09T10:00:51Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=32a1a619516be1a25128d1991dc8b6cb8863e2b7'/>
<id>urn:sha1:32a1a619516be1a25128d1991dc8b6cb8863e2b7</id>
<content type='text'>
Co-authored-by: Oleg Iarygin &lt;oleg@arhadthedev.net&gt;
Co-authored-by: Steve Dower &lt;steve.dower@microsoft.com&gt;</content>
</entry>
<entry>
<title>bpo-43423 Fix IndexError in subprocess _communicate function (GH-24777)</title>
<updated>2021-03-12T01:52:50Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2021-03-12T01:52:50Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=1a5001c606b55226c03fa1046aa8f5e1db2fa67d'/>
<id>urn:sha1:1a5001c606b55226c03fa1046aa8f5e1db2fa67d</id>
<content type='text'>
Check to make sure stdout and stderr are not empty before selecting an item from them in Windows subprocess._communicate.

Co-authored-by: Gregory P. Smith &lt;greg@krypto.org&gt;
(cherry picked from commit b4fc44bb2d209182390b4f9fdf074a46b0165a2f)

Co-authored-by: Chris Griffith &lt;chris@cdgriffith.com&gt;</content>
</entry>
<entry>
<title>bpo-42388: Fix subprocess.check_output input=None when text=True (GH-23467)</title>
<updated>2020-12-25T05:18:13Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2020-12-25T05:18:13Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d5aadb28545fd15cd3517b604a8c7a520abd09c6'/>
<id>urn:sha1:d5aadb28545fd15cd3517b604a8c7a520abd09c6</id>
<content type='text'>
When the modern text= spelling of the universal_newlines= parameter was added
for Python 3.7, check_output's special case around input=None was overlooked.
So it behaved differently with universal_newlines=True vs text=True.  This
reconciles the behavior to be consistent and adds a test to guarantee it.

Also clarifies the existing check_output documentation.

Co-authored-by: Alexey Izbyshev &lt;izbyshev@ispras.ru&gt;
(cherry picked from commit 64abf373444944a240274a9b6d66d1cb01ecfcdd)

Co-authored-by: Gregory P. Smith &lt;greg@krypto.org&gt;</content>
</entry>
<entry>
<title>[3.8] bpo-35182: fix communicate() crash after child closes its pipes (GH-18117) (GH-18148)</title>
<updated>2020-01-23T23:31:29Z</updated>
<author>
<name>Alex Rebert</name>
<email>alex@forallsecure.com</email>
</author>
<published>2020-01-23T23:31:29Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5654f83b9706af88040f515791f1cdc5d81cd9d6'/>
<id>urn:sha1:5654f83b9706af88040f515791f1cdc5d81cd9d6</id>
<content type='text'>
When communicate() is called in a loop, it crashes when the child process
has already closed any piped standard stream, but still continues to be running

Co-authored-by: Andriy Maletsky &lt;andriy.maletsky@gmail.com&gt;.
(cherry picked from commit d3ae95e1e945ed20297e1c38ba43a18b7a868ab6)

Co-authored-by: Alex Rebert &lt;alex@forallsecure.com&gt;





https://bugs.python.org/issue35182</content>
</entry>
<entry>
<title>bpo-37424: Avoid a hang in subprocess.run timeout output capture (GH-14490)</title>
<updated>2019-09-11T10:05:14Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2019-09-11T10:05:14Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=872c85a1796290baef89a20dbde819c4da45830c'/>
<id>urn:sha1:872c85a1796290baef89a20dbde819c4da45830c</id>
<content type='text'>
Fixes a possible hang when using a timeout on subprocess.run() while
capturing output. If the child process spawned its own children or otherwise
connected its stdout or stderr handles with another process, we could hang
after the timeout was reached and our child was killed when attempting to read
final output from the pipes.
(cherry picked from commit 580d2782f70f8e0bed7ec20abb03d740cb83b5da)

Co-authored-by: Gregory P. Smith &lt;greg@krypto.org&gt;</content>
</entry>
<entry>
<title>Fix subprocess docstring typo (GH-15812)</title>
<updated>2019-09-10T14:51:29Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2019-09-10T14:51:29Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=41c965f93007b53710b9f63918f6710dde321226'/>
<id>urn:sha1:41c965f93007b53710b9f63918f6710dde321226</id>
<content type='text'>
(cherry picked from commit 182e1d1f849757439f2031504f142fa4e1251611)

Co-authored-by: Matthias &lt;xmatthias@outlook.com&gt;</content>
</entry>
<entry>
<title>bpo-37380: subprocess: don't use _active on win (GH-14360) (GH-15707)</title>
<updated>2019-09-06T09:14:31Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2019-09-06T09:14:31Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4d1abedce9422473af2ac78047e55cde73208208'/>
<id>urn:sha1:4d1abedce9422473af2ac78047e55cde73208208</id>
<content type='text'>
As noted by @eryksun in [1] and [2], using _cleanup and _active(in
__del__) is not necessary on Windows, since:

&gt; Unlike Unix, a process in Windows doesn't have to be waited on by
&gt; its parent to avoid a zombie. Keeping the handle open will actually
&gt; create a zombie until the next _cleanup() call, which may be never
&gt; if Popen() isn't called again.

This patch simply defines `subprocess._active` as `None`, for which we already
have the proper logic in place in `subprocess.Popen.__del__`, that prevents it
from trying to append the process to the `_active`. This patch also defines
`subprocess._cleanup` as a noop for Windows.

[1] https://bugs.python.org/issue37380GH-msg346333
[2] https://bugs.python.org/issue36067GH-msg336262

Signed-off-by: Ruslan Kuprieiev &lt;ruslan@iterative.ai&gt;
(cherry picked from commit 042821ae3cf537e01963c9ec85d1a454d921e826)

Co-authored-by: Ruslan Kuprieiev &lt;kupruser@gmail.com&gt;</content>
</entry>
<entry>
<title>bpo-37363: Add audit events for a range of modules (GH-14301)</title>
<updated>2019-06-24T16:09:47Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2019-06-24T16:09:47Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=8763d43a9558b345af6a3a298afa18e7d3b42fd0'/>
<id>urn:sha1:8763d43a9558b345af6a3a298afa18e7d3b42fd0</id>
<content type='text'>
(cherry picked from commit 60419a7e96577cf783b3b45bf3984f9fb0d7ddff)

Co-authored-by: Steve Dower &lt;steve.dower@python.org&gt;</content>
</entry>
<entry>
<title>bpo-34886: Fix subprocess.run handling of exclusive arguments (GH-11727)</title>
<updated>2019-06-08T15:15:02Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2019-06-08T15:15:02Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=6324ac1293b2cf71559869b88f89f510f9a62a8e'/>
<id>urn:sha1:6324ac1293b2cf71559869b88f89f510f9a62a8e</id>
<content type='text'>
Fix an unintended ValueError from :func:`subprocess.run` when checking for
conflicting `input` and `stdin` or `capture_output` and `stdout` or `stderr` args
when they were explicitly provided but with `None` values within a passed in
`**kwargs` dict rather than as passed directly by name.
(cherry picked from commit 8cc605acdda5aff250ab4c9b524a7560f90ca9f3)

Co-authored-by: Rémi Lapeyre &lt;remi.lapeyre@henki.fr&gt;</content>
</entry>
<entry>
<title>bpo-31961: Fix support of path-like executables in subprocess. (GH-5914)</title>
<updated>2019-05-28T19:49:35Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2019-05-28T19:49:35Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9e3c4526394856d6376eed4968d27d53e1d69b7d'/>
<id>urn:sha1:9e3c4526394856d6376eed4968d27d53e1d69b7d</id>
<content type='text'>
</content>
</entry>
</feed>
