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