bug-bash
[Top][All Lists]
Advanced

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

Re: Builtin echo interrupted by WINCH


From: Egmont Koblinger
Subject: Re: Builtin echo interrupted by WINCH
Date: Sun, 24 Sep 2017 22:45:32 +0200

Hi,

Indeed, you're absolutely right. Reminder to myself: always test
latest devel version before reporting bugs :)

I've compiled devel with "make DEBUG= MALLOC_DEBUG=" and I could not
reproduce the issue with either of the commands.

Thanks a lot! :)

egmont


On Sun, Sep 24, 2017 at 7:48 PM, Chet Ramey <chet.ramey@case.edu> wrote:
> On 9/23/17 4:55 PM, Egmont Koblinger wrote:
>
>> Is there anything bash could do to prevent incorrect behavior of its
>> built-in commands when a SIGWINCH is encountered? And of course I
>> don't mean the "echo" command only.
>
> You can try, as the bash devel branch does, to install the SIGWINCH
> signal handler with the SA_RESTART flag. The readline code has always
> installed its SIGWINCH handler with SA_RESTART, but when it restores
> the bash SIGWINCH handler, it uses the flags bash uses, and until last
> December those didn't include SA_RESTART.
>
> --
> ``The lyf so short, the craft so long to lerne.'' - Chaucer
>                  ``Ars longa, vita brevis'' - Hippocrates
> Chet Ramey, UTech, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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