[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.
Thanks,
Arnold
- Undetected fatal errors from redirected print, Miguel Pineiro Jr., 2021/11/22
- Re: Undetected fatal errors from redirected print, Andrew J. Schorr, 2021/11/22
- Re: Undetected fatal errors from redirected print, arnold, 2021/11/23
- Re: Undetected fatal errors from redirected print, Miguel Pineiro Jr., 2021/11/23
- Re: Undetected fatal errors from redirected print, Andrew J. Schorr, 2021/11/23
- Re: Undetected fatal errors from redirected print, Miguel Pineiro Jr., 2021/11/23
- Re: Undetected fatal errors from redirected print, Andrew J. Schorr, 2021/11/23
- Re: Undetected fatal errors from redirected print, Miguel Pineiro Jr., 2021/11/23
- Re: Undetected fatal errors from redirected print, Andrew J. Schorr, 2021/11/24
- Re: Undetected fatal errors from redirected print,
arnold <=
- Re: Undetected fatal errors from redirected print, Miguel Pineiro Jr., 2021/11/26
- Re: Undetected fatal errors from redirected print, arnold, 2021/11/26
- Re: Undetected fatal errors from redirected print, Miguel Pineiro Jr., 2021/11/26
- Re: Undetected fatal errors from redirected print, Andrew J. Schorr, 2021/11/26
- Re: Undetected fatal errors from redirected print, Miguel Pineiro Jr., 2021/11/27
- Re: Undetected fatal errors from redirected print, Andrew J. Schorr, 2021/11/27
- Re: Undetected fatal errors from redirected print, Andrew J. Schorr, 2021/11/29
- Re: Undetected fatal errors from redirected print, arnold, 2021/11/30
- Re: Undetected fatal errors from redirected print, Andrew J. Schorr, 2021/11/30
- Re: Undetected fatal errors from redirected print, arnold, 2021/11/30