[CRIU] [PATCH 2/3] signalfd: add ability to get signal without removing from the queue

Cyrill Gorcunov gorcunov at openvz.org
Thu Nov 29 12:34:08 EST 2012


On Thu, Nov 29, 2012 at 09:27:48PM +0400, Pavel Emelyanov wrote:
> > 
> > Would this be valid if task is stopped?
> 
> It would, but what would be the use of this API for anything but crtools then?

Well, some limitations are acceptible in sake of simplicity I guess. Another
option might be to fill the whole buffer with current queue, but again on
live system without task being stopped you'll not get precise data. There
are bunch of places in kernel where we return data which is valid only at
moment of reading (say procfs) once read cycle complete, everything may
be changed.


More information about the CRIU mailing list