Christian Heimes added the comment: I can't reproduce the issue with Python 3.2 and dup2 on Linux.
$ gcc -o py_main py_main_dup2.c -I/usr/include/python3.2mu -lpython3.2mu -lm -pthread -ldl -lutil $ ./py_main log.txt contains 'foo' and the debug message, too. Is this still an issue for you? ---------- nosy: +christian.heimes resolution: -> works for me status: open -> languishing versions: +Python 3.3, Python 3.4 -Python 3.1 _______________________________________ 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