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 <rep...@bugs.python.org> <http://bugs.python.org/issue21384> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com