summaryrefslogtreecommitdiff
path: root/PC/_subprocess.c
Commit message (Collapse)AuthorAgeFilesLines
* PC/_subprocess.c: Fix signed/unsigned comparison (GH-7446)Victor Stinner2018-06-061-1/+1
| | | | Fix the following compiler warning on Windows: ..\PC\_subprocess.c(384): warning C4018: '>' : signed/unsigned mismatch
* [2.7] bpo-31471: Fix assertion failure in subprocess.Popen() on Windows, in ↵Oren Milman2017-09-151-1/+5
| | | | case env has a bad keys() method. (GH-3580) (#3595)
* [2.7] bpo-30730: Prevent environment variables injection in subprocess on ↵Serhiy Storchaka2017-06-241-2/+14
| | | | | | Windows. (GH-2325) (#2372) Prevent passing other invalid environment variables and command arguments.. (cherry picked from commit d174d24a5d37d1516b885dc7c82f71ecd5930700)
* Issue #20434 Correct error handlin of _PyString_Resize and _PyBytes_ResizeKristján Valur Jónsson2014-04-251-2/+3
|
* #18466: fix more typos. Patch by Févry Thibault.Ezio Melotti2013-08-171-1/+1
|
* Issue #14252: Fix subprocess.Popen.terminate() to not raise an error under ↵Antoine Pitrou2012-03-111-0/+1
| | | | Windows when the child process has already exited.
* Issue #3210: Revert C module changes and apply patch from Hirokazu Yamamoto ↵Tim Golden2010-08-081-17/+2
| | | | instead
* Issue #3210: Ensure stdio handles are closed if CreateProcess failsTim Golden2010-08-061-2/+17
|
* Untabify C files. Will watch buildbots.Antoine Pitrou2010-05-091-374/+374
|
* Fix #7838. Add docstrings and privatize _subprocess implementation details.Brian Curtin2010-04-241-10/+93
| | | | | | 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 Curtin2010-04-021-0/+1
| | | | | | | | | | | | | | 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.
* Issue #5179: Fixed subprocess handle leak on failure on windows.Hirokazu Yamamoto2009-03-031-1/+1
|
* fix issue3120 - don't truncate handles on 64-bit Windows.Gregory P. Smith2008-07-201-23/+34
| | | | | | | | | This is still messy, realistically PC/_subprocess.c should never cast pointers to python numbers and back at all. I don't have a 64-bit windows build environment because microsoft apparently thinks that should cost money. Time to watch the buildbots. It builds and passes tests on 32-bit windows.
* This reverts r63675 based on the discussion in this thread:Gregory P. Smith2008-06-091-15/+15
| | | | | | | http://mail.python.org/pipermail/python-dev/2008-June/079988.html Python 2.6 should stick with PyString_* in its codebase. The PyBytes_* names in the spirit of 3.0 are available via a #define only. See the email thread.
* Renamed PyString to PyBytesChristian Heimes2008-05-261-15/+15
|
* Bug #1500293: fix memory leaks in _subprocess module.Georg Brandl2006-06-041-3/+10
|
* Convert more modules to METH_VARARGS.Georg Brandl2006-05-291-2/+2
|
* Years in the making.Tim Peters2006-03-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | objimpl.h, pymem.h: Stop mapping PyMem_{Del, DEL} and PyMem_{Free, FREE} to PyObject_{Free, FREE} in a release build. They're aliases for the system free() now. _subprocess.c/sp_handle_dealloc(): Since the memory was originally obtained via PyObject_NEW, it must be released via PyObject_FREE (or _DEL). pythonrun.c, tokenizer.c, parsermodule.c: I lost count of the number of PyObject vs PyMem mismatches in these -- it's like the specific function called at each site was picked at random, sometimes even with memory obtained via PyMem getting released via PyObject. Changed most to use PyObject uniformly, since the blobs allocated are predictably small in most cases, and obmalloc is generally faster than system mallocs then. If extension modules in real life prove as sloppy as Python's front end, we'll have to revert the objimpl.h + pymem.h part of this patch. Note that no problems will show up in a debug build (all calls still go thru obmalloc then). Problems will show up only in a release build, most likely segfaults.
* Check return result from Py_InitModule*(). This API can fail.Neal Norwitz2006-01-191-0/+2
| | | | Probably should be backported.
* added TerminateProcess support to _subprocess driverFredrik Lundh2005-12-181-0/+21
|
* added PSF licensing blurbs to relevant filesFredrik Lundh2005-12-141-0/+3
|
* r858@spiff: Fredrik | 2005-11-10 23:40:04 +0100Fredrik Lundh2005-11-121-0/+3
| | | | | | | #1346547 added basic error checking to the STARTUPINFO code in CreateProcess.
* r849@spiff: Fredrik | 2005-11-09 10:00:04 +0100Fredrik Lundh2005-11-121-0/+3
| | | | | fixed resource leak in _subprocess.CreateProcess when using explicit environments
* When using shell=True on Windows, don't display a shell window by default. ↵Peter Astrand2004-11-071-0/+3
| | | | Fixes #1057061.
* Before this turns into an unreadable mess, follow PEP 7 by usingTim Peters2004-10-121-315/+340
| | | | hard tab indents in C code.
* Added Peter Astrand's subprocess module.Fredrik Lundh2004-10-121-0/+511