diff options
author | Christian Heimes <christian@cheimes.de> | 2007-11-10 00:30:14 +0000 |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2007-11-10 00:30:14 +0000 |
commit | 5569ca01cbeaf54f551b356025a7cc012d120156 (patch) | |
tree | 45f26a4045afcee1d7298b96b89347d9e9602abc /Python/sysmodule.c | |
parent | ef6dba62fbfeb623c721f37654ebed580255e6e4 (diff) | |
download | cpython-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