Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | #2304: fix incorporating Eric Smith's .format suggestion and tested on ↵ | Tim Golden | 2010-08-12 | 1 | -2/+2 |
| | | | | Ubuntu as well as Windows | ||||
* | revert 83832; unix test breakage | Benjamin Peterson | 2010-08-08 | 1 | -1/+1 |
| | |||||
* | Issue #2304: Add additional quotes when using cmd shell on Windows. Original ↵ | Tim Golden | 2010-08-08 | 1 | -1/+1 |
| | | | | patch from Gabriel Genellina | ||||
* | Issue #3210: Revert C module changes and apply patch from Hirokazu Yamamoto ↵ | Tim Golden | 2010-08-08 | 1 | -14/+13 |
| | | | | instead | ||||
* | Issue #9265: Incorrect name passed as arg[0] when shell=True | Stefan Krah | 2010-07-19 | 1 | -0/+2 |
| | | | | and executable specified. | ||||
* | Revert r60115 | Jean-Paul Calderone | 2010-06-18 | 1 | -3/+3 |
| | | | | | | | | | | | | This revision introduced quoting for strings containing | based on a misunderstanding of the commonly used quoting rules used on Windows. | is interpreted by cmd.exe, not by the MS C runtime argv initializer. It only needs to be quoted if it is part of an argument passed through cmd.exe. See issue1300, issue7839, and issue8972. | ||||
* | Fix regression introduced by r81154 (Issue #5099, subprocess destructor) | Victor Stinner | 2010-05-14 | 1 | -3/+3 |
| | |||||
* | subprocess.Popen.__del__ referenced global objects, which is a no-no thanks to | Brett Cannon | 2010-05-14 | 1 | -17/+34 |
| | | | | | | | | | | | | | | | | interpreter shutdown semantics. Same issue goes for the methods that __del__ called. Now all the methods capture the global objects it needs as default values to private parameters (could have stuck them on the class object itself, but since the objects have nothing directly to do with the class that seemed wrong). There is no test as making one that works is hard. This patch was verified against a consistently failing test in Mercurial's test suite, though, so it has been tested in some regard. Closes issue #5099. Thanks to Mary Stern for the bug report and Gabriel Genellina for writing another patch for the same issue and attempting to write a test. | ||||
* | Revert an accidental commit from r80492. | Brett Cannon | 2010-04-25 | 1 | -36/+17 |
| | |||||
* | When DeprecationWarning was silenced by default, it also silenced any use of -Q | Brett Cannon | 2010-04-25 | 1 | -17/+36 |
| | | | | | | | by default as well. This change fixes that by treating -Q like -3 when it comes to DeprecationWarning; using it causes the silencing to not occur. Fixes issue #7319. | ||||
* | Fix #7838. Add docstrings and privatize _subprocess implementation details. | Brian Curtin | 2010-04-24 | 1 | -47/+39 |
| | | | | | | Since CREATE_NEW_* are used for the creation flags of a subprocess, they were added to __all__. The rest of the previously exposed attributes are now qualified by _subprocess.ATTR rather than importing *. | ||||
* | Implement #1220212. Add os.kill support for Windows. | Brian Curtin | 2010-04-02 | 1 | -0/+4 |
| | | | | | | | | | | | | | | os.kill takes one of two newly added signals, CTRL_C_EVENT and CTRL_BREAK_EVENT, or any integer value. The events are a special case which work with subprocess console applications which implement a special console control handler. Any other value but those two will cause os.kill to use TerminateProcess, outright killing the process. This change adds win_console_handler.py, which is a script to implement SetConsoleCtrlHandler and applicable handler function, using ctypes. subprocess also gets another attribute which is a necessary flag to creationflags in Popen in order to send the CTRL events. | ||||
* | Fix syntax: "rc != None" -> "rc is not None" | Florent Xicluna | 2010-03-08 | 1 | -1/+1 |
| | |||||
* | Issue #1068268: The subprocess module now handles EINTR in internal | Gregory P. Smith | 2010-03-01 | 1 | -3/+14 |
| | | | | os.waitpid and os.read system calls where appropriate. | ||||
* | No need to assign the results of expressions used only for side effects. | Georg Brandl | 2010-02-06 | 1 | -1/+1 |
| | |||||
* | #7381: consistency update, and backport avoiding ``None >= 0`` check from py3k. | Georg Brandl | 2009-12-28 | 1 | -4/+6 |
| | |||||
* | #7381: subprocess documentation and library docstring consistency fixes. | Georg Brandl | 2009-12-20 | 1 | -9/+9 |
| | |||||
* | Issue 7294: Fixed URL in a comment. | Eric Smith | 2009-11-09 | 1 | -1/+3 |
| | |||||
* | #5329: fix os.popen* regression from 2.5: don't execute commands as a sequence | Philip Jenvey | 2009-09-29 | 1 | -15/+41 |
| | | | | | | through the shell. also document the correct subprocess replacement for this case patch from Jean-Paul Calderone and Jani Hakala | ||||
* | Revert r74028. | Georg Brandl | 2009-07-16 | 1 | -2/+2 |
| | |||||
* | #6482: simplify "except: raise" to "finally:". | Georg Brandl | 2009-07-16 | 1 | -2/+2 |
| | |||||
* | #6447: typo in subprocess docstring | Amaury Forgeot d'Arc | 2009-07-10 | 1 | -2/+2 |
| | |||||
* | #6416: Fix compilation of the select module on Windows, as well as ↵ | Amaury Forgeot d'Arc | 2009-07-09 | 1 | -5/+6 |
| | | | | | | | | test_subprocess: PIPE_BUF is not defined on Windows, and probably has no meaning there. Anyway the subprocess module uses another way to perform non-blocking reads (with a thread) | ||||
* | Use select.poll() in subprocess, when available, rather than select() so that | Gregory P. Smith | 2009-07-04 | 1 | -35/+96 |
| | | | | | | | | | | it does not fail when file descriptors are large. Fixes issue3392. Patch largely contributed by Frank Chu (fpmc) with some improvements by me. See http://bugs.python.org/issue3392. Candidate for backporting to release26-maint as it is a bug fix and changes no public API. | ||||
* | Issue #6274. Fixed a potential FD leak in subprocess.py. | Facundo Batista | 2009-06-19 | 1 | -82/+90 |
| | |||||
* | #6189: The subprocess.py module should be kept compatible with python 2.2 | Amaury Forgeot d'Arc | 2009-06-18 | 1 | -3/+12 |
| | | | | | (On windows, you still have to change one line to use pywin32 instead of the _subprocess helper module) | ||||
* | Issue #5179: Fixed subprocess handle leak on failure on windows. | Hirokazu Yamamoto | 2009-03-03 | 1 | -32/+15 |
| | |||||
* | Issue #5341: Fix a variety of spelling errors. | Mark Dickinson | 2009-02-21 | 1 | -2/+2 |
| | |||||
* | #5179: don't leak PIPE fds when child execution fails. | Georg Brandl | 2009-02-14 | 1 | -0/+3 |
| | |||||
* | rename the new check_call_output to check_output. its less ugly. | Gregory P. Smith | 2008-12-05 | 1 | -11/+11 |
| | |||||
* | Adds a subprocess.check_call_output() function to return the output from a | Gregory P. Smith | 2008-12-04 | 1 | -12/+60 |
| | | | | process on success or raise an exception on error. | ||||
* | Remove warnings generated for the suprocess module when run under -3. Required | Brett Cannon | 2008-08-08 | 1 | -7/+8 |
| | | | | | | commenting out True/False compatbility stuff, remove a use of apply(), and remove a use of buffer() (just pulled the solution used in 3.0 which is direct slicing). | ||||
* | - Issue #1857: subprocess.Popen.poll gained an additional _deadstate keyword | Gregory P. Smith | 2008-08-04 | 1 | -4/+8 |
| | | | | | 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. | ||||
* | - Issue #2113: Fix error in subprocess.Popen if the select system call is | Gregory P. Smith | 2008-07-06 | 1 | -1/+6 |
| | | | | interrupted by a signal. | ||||
* | Fixes issue2791: subprocess.Popen.communicate leaked a file descripton until | Gregory P. Smith | 2008-05-26 | 1 | -0/+2 |
| | | | | | | | the last reference to the Popen instance was dropped. Adding explicit close() calls fixes it. Candidate for backport to release25-maint. | ||||
* | Added kill, terminate and send_signal to subprocess.Popen | Christian Heimes | 2008-04-19 | 1 | -0/+32 |
| | | | | The bits and pieces for the Windows side were already in place. The POSIX side is trivial (as usual) and uses os.kill(). | ||||
* | Fix issue 1300: Quote command line arguments that contain a '|' character in | Gregory P. Smith | 2008-01-19 | 1 | -3/+3 |
| | | | | subprocess.list2cmdline (windows). | ||||
* | Undo an unnecessary else: and indentation that r60104 added. | Gregory P. Smith | 2008-01-19 | 1 | -58/+57 |
| | | | | | | | | | | | | try: ... except: ... raise else: ... the else: is unecessary due to the blind except: with a raise. | ||||
* | Fixes issue1336 - a race condition could occur when forking if the gc | Gregory P. Smith | 2008-01-19 | 1 | -58/+71 |
| | | | | | | | kicked in during the critical section. solution: disable gc during that section. Patch contributed by jpa and updated by me to cover the race condition still existing what therve from twistedmatrix pointed out (already seen and fixed in twisted's own subprocess code). | ||||
* | fix comment typos, use not arg instead of arg == "", add test coverage | Gregory P. Smith | 2008-01-19 | 1 | -3/+3 |
| | | | | for inside of the final if needquotes: within subprocess.list2cmdline(). | ||||
* | #1663329: add os.closerange() to close a range of fds, | Georg Brandl | 2008-01-19 | 1 | -7/+2 |
| | | | | | ignoring errors, and use this in subprocess to speed up subprocess creation in close_fds mode. Patch by Mike Klaas. | ||||
* | Applied patch 1669481, slightly modified: Support close_fds on Win32 | Peter Astrand | 2007-05-26 | 1 | -5/+4 |
| | |||||
* | Remove trailing whitespace in docstring | Neal Norwitz | 2007-05-11 | 1 | -2/+0 |
| | |||||
* | Fix typo in docstring (the module is popen2, not 3). | Neal Norwitz | 2007-05-11 | 1 | -1/+1 |
| | |||||
* | Bug #1704790: bind name "sys" locally in __del__ method so that it is | Georg Brandl | 2007-04-21 | 1 | -1/+1 |
| | | | | not cleared before __del__ is run. | ||||
* | Whitespace normalization. | Tim Peters | 2007-03-12 | 1 | -1/+1 |
| | |||||
* | Applied patch 1124861.3.patch to solve bug #1124861: Automatically create ↵ | Peter Astrand | 2007-02-06 | 1 | -3/+25 |
| | | | | pipes on Windows, if GetStdHandle fails. Will backport. | ||||
* | We had several if statements checking the value of a fd. This is unsafe, ↵ | Peter Astrand | 2007-02-02 | 1 | -15/+15 |
| | | | | since valid fds might be zero. We should check for not None instead. | ||||
* | Whitespace normalization. | Tim Peters | 2007-01-30 | 1 | -1/+1 |
| | |||||
* | Fix for bug #1634343: allow specifying empty arguments on Windows | Peter Astrand | 2007-01-13 | 1 | -1/+1 |
| |