bug-gawk
[Top][All Lists]
Advanced

[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, 02 Dec 2021 00:44:14 -0700
User-agent: Heirloom mailx 12.5 7/5/10

"Andrew J. Schorr" <aschorr@telemetry-investments.com> wrote:

> By the way, the logic in io.c:non_fatal_flush_std_file is somewhat similar to
> builtin.c:wrerror. Maybe those should be somehow combined.

They are similar, but it looked a little too messy to combine them.

> Actually, the call to w32_maybe_set_errno() appears in 6
> places (main.c:usage, main.c:copyleft, builtin.c:wrerror,
> io.c:non_fatal_flush_std_file, io.c:close_io). Maybe there should be
> some attempt to unify this logic.

I have prettified this somewhat.  Git is updated.

Thanks,

Arnold



reply via email to

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