summaryrefslogtreecommitdiff
path: root/Python/sysmodule.c
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2007-11-10 00:30:14 +0000
committerChristian Heimes <christian@cheimes.de>2007-11-10 00:30:14 +0000
commit5569ca01cbeaf54f551b356025a7cc012d120156 (patch)
tree45f26a4045afcee1d7298b96b89347d9e9602abc /Python/sysmodule.c
parentef6dba62fbfeb623c721f37654ebed580255e6e4 (diff)
downloadcpython-5569ca01cbeaf54f551b356025a7cc012d120156.tar.gz
Bug #1415
On Windows fileno(stdout) and fileno(stderr) can return an invalid file descriptor number (-2 on my machine). It happens only for pythonw.exe but not for python.exe. Catch the problem ASAP in PyFile_NewStdPrinter(). I've also removed the call to PyErr_BadInternalCall(). It was causing a seg fault because the exceptions aren't available yet.
Diffstat (limited to 'Python/sysmodule.c')
0 files changed, 0 insertions, 0 deletions