-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Croak on failed write into a file #32
Comments
My understanding is that on most operating systems, printing errors won't be caught until close(). On what operating system did you observe a failure of the type you describe? David |
On Wed, Nov 27, 2013 at 04:29:57AM -0800, David Golden wrote:
I can give a try to reproduce the failure, but I believe it's obvious it can -- Petr |
You misunderstand what binary mode does. It removes any transformative PerlIO layers. It does not remove buffering. |
I've conferred with p5p and done some of my own testing. Errors during print() will be reported on close(). For example:
The second example sets autoflush. The last sets autoflush and disables PerlIO buffering. All three report the print error at close. |
On Wed, Nov 27, 2013 at 03:26:07PM -0800, David Golden wrote:
Although not checking print() failure is safe, it wastenetwork bandwidth as -- Petr |
The text was updated successfully, but these errors were encountered: