Paul Eggert <address@hidden> wrote:
> I looked at coreutils CVS ls.c in more detail, and found some more
> signal-handling problems. Basically, the problem is that a SIGTSTP
> signal can arrive at any time, and it can cause "ls" to output a
> command sequence to change the terminal back to the default color.
> But this command sequence could appear in the middle of a multibyte
> character, or in the middle of another color-change sequence; either
> event could mess up the screen. There's a similar problem with
> SIGINT, SIGHUP, etc. (though these tend to be less of an issue, as
> they can occur at most once).
>
> The following proposed patch attempts to fix these problems.
> (You think this is bad? You should see "dd". Ouch....)
>
> 2004-04-22 Paul Eggert <address@hidden>
Thanks!
Applied.