summaryrefslogtreecommitdiffstats
path: root/PC/_subprocess.c
Commit message (Collapse)AuthorAgeFilesLines
* 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