[issue21384] Windows: Make handle non inheritable by default
STINNER Victor
report at bugs.python.org
Mon May 12 23:23:40 CEST 2014
STINNER Victor added the comment:
> For example, hCryptProv in Python/random.c is inheritable or not?
This is not a standard handle. GetHandleInformation() fails with a Windows error 6 (invalid descriptor).
I listed inheritable handles with a loop on range(0, 0x1001): only handles of stdin, stdout and stderr are inheritable. The other handles are not inheritable.
I also listed handles of parent and child processes using "handle.exe" tool from Microsoft. I see that the child has less open handle, all file handles that I opened manually are not inheried, and everything looks fine.
So I think that the issue can now be closed.
----------
resolution: -> fixed
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21384>
_______________________________________
More information about the Python-bugs-list
mailing list