summaryrefslogtreecommitdiffstats
path: root/Modules/_posixsubprocess.c
Commit message (Collapse)AuthorAgeFilesLines
* Issue #12607: In subprocess, fix issue where if stdin, stdout or stderr isRoss Lagerwall2011-07-271-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. Smith2011-03-151-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 standardAntoine Pitrou2011-01-031-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. Smith2011-01-021-17/+29
| | | | ENOSYS.
* fix a compiler warning about err_msg potentially being used uninitialized.Gregory P. Smith2010-12-221-1/+1
|
* Issue #6559: fix the subprocess.Popen pass_fds implementation. Add a unittest.Gregory P. Smith2010-12-141-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 fromGregory P. Smith2010-12-131-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 callerGregory P. Smith2010-12-041-9/+33
| | | | to list exactly which file descriptors should be kept open.
* Issue #8485: PyUnicode_FSConverter() doesn't accept bytearray object anymore,Victor Stinner2010-04-221-4/+1
| | | | you have to convert your bytearray filenames to bytes
* Issue #8393: subprocess accepts bytes, bytearray and str with surrogates forVictor Stinner2010-04-161-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 notGregory P. Smith2010-03-191-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. Smith2010-03-151-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 onGregory P. Smith2010-03-141-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