[issue46454] '0 -> /dev/null' is lost
licunlong
report at bugs.python.org
Fri Jan 21 22:11:22 EST 2022
licunlong <shenxiaogll at 163.com> added the comment:
But one more question.
Please take a look at fd.py. In this file, we first close fd 0, then open /dev/null as fd_null, and dump fd_null to fd 0. After we fork new process, this fd 0 `is` inherited.
This seems to be a bug?
----------
nosy: +Geass-LL
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46454>
_______________________________________
More information about the Python-bugs-list
mailing list