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

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

 



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
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux