bug-gawk
[Top][All Lists]
Advanced

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

Re: [bug-gawk] Behavior of fflush with SIGPIPE on stdout [PATCH]


From: Eli Zaretskii
Subject: Re: [bug-gawk] Behavior of fflush with SIGPIPE on stdout [PATCH]
Date: Wed, 29 Mar 2017 17:27:15 +0300

> From: address@hidden
> Date: Tue, 28 Mar 2017 20:31:31 -0600
> Cc: address@hidden, address@hidden
> 
> Eli Zaretskii <address@hidden> wrote:
> 
> > Yep, just like I thought:
> >
> >   D:\usr\eli>yes | d:\gnu\gawk-4.1.61\gawk "{ print; fflush(stdout) }" | 
> > head
> >   y
> >   ...
> >   y
> >   gawk: cmd. line:1: (FILENAME=- FNR=264) fatal: fflush: cannot flush 
> > standard output: Invalid argument
> >   yes: standard output: Invalid argument
> >   yes: write error
> >
> > Which is hardly what we want.
> >
> > This "needs work"???.
> 
> I suspect that if you change the die_with_sigpipe macro to DTRT on
> MinGW that will be all you have to do.

No, that won't do: I need to fix the bogus errno value first.  Not
rocket science, either.




reply via email to

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