[CRIU] [PATCH 05/22] parasite: Extend tid_state_s structure
Andrey Vagin
avagin at openvz.org
Wed May 8 09:28:32 EDT 2013
From: Cyrill Gorcunov <gorcunov at openvz.org>
In daemon mode each thread will require own stack
to run on, thus add @stack member.
Also we will need an @real member to identify each
thread uniquely, @real stands here for "real" pid
which we refer to in main crtools module.
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
pie/parasite.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/pie/parasite.c b/pie/parasite.c
index 29137f0..e7e6455 100644
--- a/pie/parasite.c
+++ b/pie/parasite.c
@@ -17,9 +17,11 @@
static int tsock = -1;
static struct tid_state_s {
+ pid_t real;
pid_t tid;
bool use_sig_blocked;
k_rtsigset_t sig_blocked;
+ unsigned char stack[PARASITE_STACK_SIZE] __aligned(8);
} *tid_state;
static unsigned int nr_tid_state;
--
1.8.2
More information about the CRIU
mailing list