[issue10080] Py_Initialize crashes when stdout has been redirected with freopen
Mitchell Stokes
report at bugs.python.org
Wed Oct 13 20:54:04 CEST 2010
Mitchell Stokes <mogurijin at gmail.com> added the comment:
I used _dup2() and I still got a crash. Also, if I use _fileno(stdout) after using freopen(), I get 1.
I'm uploading two more example programs.
py_main_fileno_check.c prints the fileno to the text file
py_main_dup2.c uses _dup2() to redirect stdout instead of freopen
----------
Added file: http://bugs.python.org/file19219/py_main_fileno_check.c
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10080>
_______________________________________
More information about the Python-bugs-list
mailing list