[issue37380] subprocess.Popen._cleanup() "The handle is invalid" error when some old process is gone
STINNER Victor
report at bugs.python.org
Mon Jul 1 06:41:39 EDT 2019
STINNER Victor <vstinner at redhat.com> added the comment:
> subprocess._active[0]._handle.Close()
Why would you do that? You should not access the private _active list, nor access the private _handle attribute. I understand that it's a way to trigger such bug, but is it possible to trigger this bug without accessing any private attribute?
> I wouldn't want _internal_poll to silence this error, but maybe it could be translated into a warning
I disagree with that. It's very bad is suddenly the handle becomes invalid for no obvious reason. It's better to get an hard error (exception) in such case.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37380>
_______________________________________
More information about the Python-bugs-list
mailing list