This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jasujm
Recipients jasujm, neologix, pitrou, python-dev, serhiy.storchaka, vstinner
Date 2013-12-17.14:49:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1387291786.04.0.205776522606.issue17976@psf.upfronthosting.co.za>
In-reply-to
Content
The new patch is fine as it is, but my logic behind using err_flag was the following: err_flag was set solely based on the inspection of return value of fwrite and ferror, without referencing to errno. It is of course true that at the same time errno is set to non-zero in any correct C standard library implementation (err_flag != 0 iff err != 0), but as the patch was originally for circumventing a bug in glibc, I decided to be use that extra flag for the purpose.

> But I'm still unable to reproduce the glibc bug mentioned by Charles-François :

Yes. It seems that the bug in glibc has been fixed. But at least Python 2.7 is now a little bit better guarded against exotic file IO bugs that might emerge in C standard libraries :)
History
Date User Action Args
2013-12-17 14:49:46jasujmsetrecipients: + jasujm, pitrou, vstinner, neologix, python-dev, serhiy.storchaka
2013-12-17 14:49:46jasujmsetmessageid: <1387291786.04.0.205776522606.issue17976@psf.upfronthosting.co.za>
2013-12-17 14:49:46jasujmlinkissue17976 messages
2013-12-17 14:49:45jasujmcreate