Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fixes Issue #16962: Use getdents64 instead of the obsolete getdents syscall | Gregory P. Smith | 2013-03-03 | 1 | -14/+8 |
|\ | | | | | | | in the subprocess module on Linux. | ||||
| * | Issue #16962: Use getdents64 instead of the obsolete getdents syscall in | Gregory P. Smith | 2013-03-03 | 1 | -14/+8 |
| | | | | | | | | the subprocess module on Linux. | ||||
* | | Raise our own SubprocessError rather than a RuntimeError in when dealing with | Gregory P. Smith | 2012-11-11 | 1 | -1/+1 |
|/ | | | | odd rare errors coming from the subprocess module. | ||||
* | Fixes Issue #16114: The subprocess module no longer provides a | Gregory P. Smith | 2012-10-10 | 1 | -1/+6 |
|\ | | | | | | | | | | | misleading error message stating that args[0] did not exist when either the cwd or executable keyword arguments specified a path that did not exist. | ||||
| * | Fixes Issue #16114: The subprocess module no longer provides a | Gregory P. Smith | 2012-10-10 | 1 | -1/+6 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | misleading error message stating that args[0] did not exist when either the cwd or executable keyword arguments specified a path that did not exist. It now keeps track of if the child got as far as preexec and reports it if not back to the parent via a special "noexec" error message value in the error pipe so that the cwd can be blamed for a failed chdir instead of the exec of the executable being blamed instead. The executable is also always reported accurately when exec fails. Unittests enhanced to cover these cases. | ||||
* | | Merge with 3.2 | Ross Lagerwall | 2012-08-24 | 1 | -1/+3 |
|\ \ | |/ | |||||
| * | Issue 15777: Fix a refleak in _posixsubprocess. | Ross Lagerwall | 2012-08-24 | 1 | -1/+3 |
| | | | | | | | | It was exposed by 03c98d05b140 and dbbf3ccf72e8. | ||||
* | | Merge 3.2. | Stefan Krah | 2012-08-20 | 1 | -0/+2 |
|\ \ | |/ | |||||
| * | Issue #15738: Fix a missing NULL check in subprocess_fork_exec(). | Stefan Krah | 2012-08-20 | 1 | -0/+2 |
| | | |||||
* | | Issue #15604: Update uses of PyObject_IsTrue() to check for and handle ↵ | Antoine Pitrou | 2012-08-15 | 1 | -4/+3 |
|\ \ | |/ | | | | | | | | | errors correctly. Patch by Serhiy Storchaka. | ||||
| * | Issue #15604: Update uses of PyObject_IsTrue() to check for and handle ↵ | Antoine Pitrou | 2012-08-15 | 1 | -0/+2 |
| | | | | | | | | | | | | errors correctly. Patch by Serhiy Storchaka. | ||||
* | | Fixes issue #15000: support the odd x32 abi on posixsubprocess's system call. | Gregory P. Smith | 2012-06-05 | 1 | -0/+7 |
|\ \ | |/ | |||||
| * | Fixes issue #15000: support the odd x32 abi on posixsubprocess's system call. | Gregory P. Smith | 2012-06-05 | 1 | -0/+7 |
| | | |||||
| * | Issue #14359: Only use O_CLOEXEC in _posixmodule.c if it is defined. | Ross Lagerwall | 2012-03-19 | 1 | -1/+12 |
| | | | | | | | | Based on patch from Hervé Coatanhay. | ||||
* | | Issue 14359: Only use O_CLOEXEC in _posixmodule.c if it is defined. | Ross Lagerwall | 2012-03-18 | 1 | -1/+12 |
| | | | | | | | | Based on patch from Hervé Coatanhay. | ||||
* | | Use ANSI C prototype instead of K&R style. | Ross Lagerwall | 2012-03-07 | 1 | -1/+1 |
| | | |||||
* | | merge 3.2 | Benjamin Peterson | 2012-01-23 | 1 | -24/+31 |
|\ \ | |/ | |||||
| * | fix declaration style | Benjamin Peterson | 2012-01-23 | 1 | -24/+31 |
| | | |||||
* | | Fix FreeBSD, NetBSD and OpenBSD behavior of the issue #8052 fix. | Gregory P. Smith | 2012-01-22 | 1 | -9/+47 |
|\ \ | |/ | |||||
| * | Fix FreeBSD, NetBSD and OpenBSD behavior of the issue #8052 fix. | Gregory P. Smith | 2012-01-22 | 1 | -9/+47 |
| | | |||||
* | | bugfix for *BSD platforms. (oops messed up #define) | Gregory P. Smith | 2012-01-21 | 1 | -4/+2 |
|\ \ | |/ | |||||
| * | Another issue #8052 bugfix (related to previous commit). | Gregory P. Smith | 2012-01-21 | 1 | -4/+2 |
| | | | | | | | | "oops" while rearranging the #defines. | ||||
* | | bugfix for issue 8052 fixes on *BSD platforms. | Gregory P. Smith | 2012-01-21 | 1 | -9/+13 |
|\ \ | |/ | |||||
| * | Bugfix for issue #8052 fix on *BSD variants. | Gregory P. Smith | 2012-01-21 | 1 | -9/+13 |
| | | | | | | | | | | Many lack readdir64, use readdir. Only use readdir64 on solaris where it is required to work around a solaris bug. | ||||
* | | Fixes issue #8052: The posix subprocess module's close_fds behavior was | Gregory P. Smith | 2012-01-21 | 1 | -35/+258 |
|\ \ | |/ | | | | | | | | | | | | | suboptimal by closing all possible file descriptors rather than just the open ones in the child process before exec(). It now closes only the open fds when it is possible to safely determine what those are. | ||||
| * | Fixes issue #8052: The posix subprocess module's close_fds behavior was | Gregory P. Smith | 2012-01-21 | 1 | -35/+258 |
| | | | | | | | | | | | | | | | | suboptimal by closing all possible file descriptors rather than just the open ones in the child process before exec(). It now closes only the open fds when it is possible to safely determine what those are. | ||||
* | | Avoid the compiler warning about the unused return value. | Gregory P. Smith | 2012-01-21 | 1 | -6/+9 |
|\ \ | |/ | |||||
| * | Avoid the compiler warning about the unused return value. | Gregory P. Smith | 2012-01-21 | 1 | -6/+9 |
| | | |||||
| * | Don't redefine _GNU_SOURCE if it's already defined. | Ross Lagerwall | 2011-12-22 | 1 | -2/+2 |
| | | |||||
* | | Merge with 3.2 for #11006. | Ross Lagerwall | 2011-12-22 | 1 | -6/+0 |
|\ \ | |/ | |||||
| * | Issue #11006: Don't issue low level warning in subprocess when pipe2() fails. | Ross Lagerwall | 2011-12-22 | 1 | -6/+0 |
| | | |||||
* | | Rename _Py_identifier to _Py_IDENTIFIER. | Martin v. Löwis | 2011-10-14 | 1 | -3/+3 |
| | | |||||
* | | Add API for static strings, primarily good for identifiers. | Martin v. Löwis | 2011-10-09 | 1 | -3/+8 |
| | | | | | | | | Thanks to Konrad Schöbel and Jasper Schulz for helping with the mass-editing. | ||||
* | | Issue #12607: Merge with 3.2. | Ross Lagerwall | 2011-07-27 | 1 | -0/+7 |
|\ \ | |/ | |||||
| * | Issue #12607: In subprocess, fix issue where if stdin, stdout or stderr is | Ross Lagerwall | 2011-07-27 | 1 | -0/+7 |
| | | | | | | | | given as a low fd, it gets overwritten. | ||||
| * | Fix issue #11432. if the stdin pipe is the same file descriptor as either ↵ | Gregory P. Smith | 2011-03-15 | 1 | -2/+2 |
| | | | | | | | | | | | | | | stdout or stderr in the _posixsubprocess C extension module it would unintentionally close the fds and raise an error. | ||||
* | | _posixsubprocess.c: don't redefine _GNU_SOURCE if it's already defined | Victor Stinner | 2011-05-26 | 1 | -2/+2 |
| | | |||||
* | | Fix issue #11432. if the stdin pipe is the same file descriptor as either ↵ | Gregory P. Smith | 2011-03-15 | 1 | -2/+2 |
|/ | | | | | | | stdout or stderr in the _posixsubprocess C extension module it would unintentionally close the fds and raise an error. | ||||
* | Issue #10806, issue #9905: Fix subprocess pipes when some of the standard | Antoine Pitrou | 2011-01-03 | 1 | -8/+21 |
| | | | | | file descriptors (0, 1, 2) are closed in the parent process. Initial patch by Ross Lagerwall. | ||||
* | issue10802: fallback to pipe+fcntl when the pipe2 syscall fails with errno ↵ | Gregory P. Smith | 2011-01-02 | 1 | -17/+29 |
| | | | | ENOSYS. | ||||
* | fix a compiler warning about err_msg potentially being used uninitialized. | Gregory P. Smith | 2010-12-22 | 1 | -1/+1 |
| | |||||
* | Issue #6559: fix the subprocess.Popen pass_fds implementation. Add a unittest. | Gregory P. Smith | 2010-12-14 | 1 | -1/+1 |
| | | | | | | | | Issue #7213: Change the close_fds default on Windows to better match the new default on POSIX. True when possible (False if stdin/stdout/stderr are supplied). Update the documentation to reflect all of the above. | ||||
* | issue7213: Open the pipes used by subprocesses with the FD_CLOEXEC flag from | Gregory P. Smith | 2010-12-13 | 1 | -0/+44 |
| | | | | | the C code, using pipe2() when available. Adds unittests for close_fds and cloexec behaviors. | ||||
* | issue6559: Adds a pass_fds parameter to subprocess.Popen that allows the caller | Gregory P. Smith | 2010-12-04 | 1 | -9/+33 |
| | | | | to list exactly which file descriptors should be kept open. | ||||
* | Issue #8485: PyUnicode_FSConverter() doesn't accept bytearray object anymore, | Victor Stinner | 2010-04-22 | 1 | -4/+1 |
| | | | | you have to convert your bytearray filenames to bytes | ||||
* | Issue #8393: subprocess accepts bytes, bytearray and str with surrogates for | Victor Stinner | 2010-04-16 | 1 | -4/+20 |
| | | | | | | the current working directory. Remove also a trailing space, and replace tabulation indentation by spaces. | ||||
* | * Fix a refleak when a preexec_fn was supplied (preexec_fn_args_tuple was not | Gregory P. Smith | 2010-03-19 | 1 | -3/+11 |
| | | | | | | | | being defref'ed). * Fixes another potential refleak of a reference to the gc module in the unlikely odd case where gc module isenabled or disable calls fail. * Adds a unittest for the above case to verify behavior and lack of leaks. | ||||
* | * Fix the refcount leak in _PySequence_BytesToCharpArray from r78946. | Gregory P. Smith | 2010-03-15 | 1 | -7/+9 |
| | | | | | * Also fixes a potential extra DECREF of an arg in the error case within _posixsubprocess.fork_exec() by not reusing the process_args variable. | ||||
* | * Replaces the internals of the subprocess module from fork through exec on | Gregory P. Smith | 2010-03-14 | 1 | -0/+385 |
POSIX systems with a C extension module. This is required in order for the subprocess module to be made thread safe. The pure python implementation is retained so that it can continue to be used if for some reason the _posixsubprocess extension module is not available. The unittest executes tests on both code paths to guarantee compatibility. * Moves PyLong_FromPid and PyLong_AsPid from posixmodule.c into longobject.h. Code reviewed by jeffrey.yasskin at http://codereview.appspot.com/223077/show |