[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Undetected fatal errors from redirected print

From: arnold
Subject: Re: Undetected fatal errors from redirected print
Date: Thu, 25 Nov 2021 01:51:12 -0700
User-agent: Heirloom mailx 12.5 7/5/10

 On Tue, Nov 23, 2021, at 6:24 PM, Andrew J. Schorr wrote:
> > The fclose has to do an implicit fflush, of course, before closing the
> > file. Are you suggesting we should call fflush prior to fclose and then
> > issue an error if fflush fails (but not if fclose fails)?

"Miguel Pineiro Jr." <mpj@pineiro.cc> wrote:
> Yes, to distinguish a fatal error in the print statement's output
> from subsequent, unrelated stream closing errors. Perhaps something
> like do_fflush (which understands when a redirection has been declared
> nonfatal).

I suppose this isn't unreasonable. I will look at it.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]