summaryrefslogtreecommitdiffstats
path: root/Lib/subprocess.py
Commit message (Collapse)AuthorAgeFilesLines
* (backport from trunk r64756)Gregory P. Smith2008-08-041-1/+6
| | | | | Issue #2113: Fix error in subprocess.Popen if the select system call is interrupted by a signal.
* (backport r65459 from trunk)Gregory P. Smith2008-08-041-4/+8
| | | | | | - Issue #1857: subprocess.Popen.poll gained an additional _deadstate keyword argument in python 2.5, this broke code that subclassed Popen to include its own poll method. Fixed my moving _deadstate to an _internal_poll method.
* Backport r62724 from trunk. Fixes issue 2791. subprocess.Popen.communicateGregory P. Smith2008-06-011-0/+2
| | | | now closes its stdout and stderr fds as soon as it is finished with them.
* backport r60104 + r60111 from trunk.Gregory P. Smith2008-01-191-1/+13
| | | | | | - Issue #1336: fix a race condition in subprocess.Popen if the garbage collector kicked in at the wrong time that would cause the process to hang when the child wrote to stderr.
* Fix typo in docstring (the module is popen2, not 3).Neal Norwitz2007-05-111-1/+1
|
* Whitespace normalizationNeal Norwitz2007-04-251-2/+2
|
* Bug #1704790: bind name "sys" locally in __del__ method so that it isGeorg Brandl2007-04-211-1/+1
| | | | | not cleared before __del__ is run. (backport from rev. 54918)
* Applied patch 1124861.3.patch to solve bug #1124861: Automatically create ↵Peter Astrand2007-02-061-3/+25
| | | | pipes on Windows, if GetStdHandle fails. Backport from rev 53646.
* Avoid O(N**2) bottleneck in _communicate_(). Fixes #1598181. Backport from ↵Peter Astrand2007-01-211-3/+4
| | | | rev. 53295.
* Fix for bug #1634343: allow specifying empty arguments on WindowsPeter Astrand2007-01-131-1/+1
|
* Re-implemented fix for #1531862 once again, in a way that works with Python ↵Peter Astrand2007-01-071-2/+6
| | | | 2.2. Fixes bug #1603424.
* SF bug #1623890, fix argument name in docstringNeal Norwitz2006-12-291-1/+1
|
* Bug #1357915: allow all sequence types for shell arguments inGeorg Brandl2006-10-291-0/+2
| | | | | subprocess. (backport from rev. 52522)
* Fixed bug #1531862: Do not close standard file descriptors in subprocess.Gustavo Niemeyer2006-09-061-8/+4
| | | | | | | | | Let's try that once more. Buildbots were broken last time, but probably because tests were sending data to stderr for testing it (sending to a file doesn't touch the problem). The fix is still the same, but tests were reduced (removing tests to be able to fix something is weird, but oh well).
* Revert 51759 because it broke all the buildbotsNeal Norwitz2006-09-061-4/+8
|
* Backporting fix for bug #1531862, committed in 51758, into 2.5,Gustavo Niemeyer2006-09-061-8/+4
| | | | making subprocess not close standard file descriptors.
* Guard for _active being None in __del__ method.Georg Brandl2006-07-201-1/+1
|
* Whitespace normalization.Tim Peters2006-07-181-1/+1
|
* Bug #1223937: CalledProcessError.errno -> CalledProcessError.returncode.Peter Astrand2006-07-141-8/+13
|
* Fix doco. Backport candidate.Neal Norwitz2006-07-101-1/+1
|
* Applied patch #1506758: Prevent MemoryErrors with large MAXFD.Peter Astrand2006-06-221-1/+1
|
* Bug #1500293: fix memory leaks in _subprocess module.Georg Brandl2006-06-041-5/+5
|
* Try to fix breakage caused by patch #1479181, r45850Neal Norwitz2006-05-021-2/+2
|
* Patch #1467770: Add Popen objects to _active only in __del__.Martin v. Löwis2006-04-101-10/+26
| | | | | | Introduce _child_active member to keep track on whether a child needs to be waited for. Backport candidate.
* Changed license header: Now simply referring to PSF. This closes bugPeter Astrand2005-09-231-22/+2
| | | | 1138653.
* Whitespace normalization.Tim Peters2005-03-281-4/+4
|
* Corrected bug in list2cmdline wrt backslashes. Fixes #1083306.Peter Astrand2005-03-031-0/+1
|
* Optimization for communicate(): If only one of stdin/stdout/stderr isPeter Astrand2005-03-031-16/+29
| | | | redirected, using select() or threads is unnecessary.
* Made the module compatible with Python 2.2 again.Peter Astrand2005-02-211-2/+5
|
* Added copyright notice:Peter Astrand2005-02-141-0/+2
| | | | Licensed to PSF under a Contributor Agreement.
* Patch from Leandro Lucarella: replaced:Peter Astrand2005-02-101-29/+29
| | | | | | | | | | | | var == None and var != None with var is None and var is not None and type(var) == int with instanceof(var, int) ...as recomended in PEP 8 [1].
* Reduce the usage of the types module.Raymond Hettinger2005-02-071-9/+8
|
* On UNIX, when the execution of the child fails, we must waitpid() toPeter Astrand2005-01-011-0/+1
| | | | prevent leaving zombies.
* New subprocess utility function: check_call. Closes #1071764.Peter Astrand2005-01-011-1/+39
|
* Changed signature of call function to avoid confusion: this 'args' is not ↵Peter Astrand2004-12-051-3/+3
| | | | the same as the one to the Popen constructor
* Raise TypeError if bufsize argument is not an integer. Patch 1071755, ↵Peter Astrand2004-11-301-0/+3
| | | | slightly modified.
* Corrected example for replacing shell pipeline. Fixes bug 1073790.Peter Astrand2004-11-301-1/+1
|
* When using shell=True on Windows, don't display a shell window by default. ↵Peter Astrand2004-11-071-11/+14
| | | | Fixes #1057061.
* Fix docstring formatting of escape sequences.Raymond Hettinger2004-10-171-1/+1
|
* return codes are available on all platforms, not just on UnixFredrik Lundh2004-10-171-4/+3
|
* Replace dynamic try/except with "if 0", to keep py2exe happy. If youFredrik Lundh2004-10-131-10/+10
| | | | want to use pywin32 instead of _subprocess, you have to edit the file.
* Folded long lines.Tim Peters2004-10-131-23/+42
|
* Whitespace normalization.Tim Peters2004-10-121-24/+22
|
* Typo fixAndrew M. Kuchling2004-10-121-1/+1
|
* Added Peter Astrand's subprocess module.Fredrik Lundh2004-10-121-0/+1141