[CRIU] [PATCH 3/7] parasite: Add init_thread() helper

Cyrill Gorcunov gorcunov at openvz.org
Sun Nov 4 15:06:50 EST 2012


The patch adds init_thread() helper function which is supposed to
be called from seized threads context to save thread specific data
in parasite memory slab.

At moment only blocked signals are saved but it might be extended
in future.

Note it's done in a manner of main init() parasite function -- once
thread is seized we save old blocked signals mask and mask all signals
until fini() called.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 include/parasite.h |    5 +++++
 parasite.c         |   25 +++++++++++++++++++++++++
 2 files changed, 30 insertions(+), 0 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-parasite-Add-init_thread-helper.patch
Type: text/x-patch
Size: 2025 bytes
Desc: not available
URL: <http://lists.openvz.org/pipermail/criu/attachments/20121105/32603ff0/attachment-0001.bin>


More information about the CRIU mailing list