André Malo <nd at perlig.de> added the comment: It should catch OSError on fdopen, close fd and reraise, I think. ---------- nosy: +ndparker __________________________________ Tracker <report at bugs.python.org> <http://bugs.python.org/issue2717> __________________________________