Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zsh 4.3.9: Interrupted "tcsetattr" call problem, tiling-wm related



Bart Schaefer wrote:
> On Mar 2, 10:23am, Peter Stephenson wrote:
> }
> } On Fri, 27 Feb 2009 17:20:25 +0100
> } Lionel Flandrin <lionel@xxxxxxxx> wrote:
> } >   while (tcsetattr(SHTTY, TCSADRAIN, &ti->tio) == -1 && errno == EINTR);
> } 
> } That looks fine, I've committed it.  Thanks.
> 
> I wonder if queue_signals/unqueue_signals around the tcsetattr might be
> more appropriate?

That doesn't actually block the signal, it just marks that we should
queue any shell code activities.  We would still receive the signal, and
hence the system call would still fail with EINTR.

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070



Messages sorted by: Reverse Date, Date, Thread, Author