qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] Re: [PATCH] Fix freezing bug in curses console


From: Jamie Lokier
Subject: Re: [Qemu-devel] Re: [PATCH] Fix freezing bug in curses console
Date: Sat, 28 Feb 2009 21:21:16 +0000
User-agent: Mutt/1.5.13 (2006-08-11)

Anthony Liguori wrote:
> >>It's racy with select().  A better fix would be to create a pipe and write
> >>to that pipe in the SIGWINCH handler.  You should then register an io
> >>    
> >
> >Maybe a bottom half would work?  The scheduling of a bh shouldn't
> >constitute "real work".
> 
> I think it still suffers from the same race condition so today it 
> wouldn't work.  You could fix the bottom half scheduling though so that 
> you could safely schedule a bottom half from a signal handler (using 
> roughly the same trick).

Fwiw, it's perfectly sensible to have a single pipe which is shared by
all signal handlers, just used to say "check for work flags set".

-- Jamie




reply via email to

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