[CRIU] [PATCH 24/24] parasite: don't store sig_blocked in a parasite
Andrey Vagin
avagin at openvz.org
Wed May 22 16:08:25 EDT 2013
Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
pie/parasite.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/pie/parasite.c b/pie/parasite.c
index f68ad60..85f4272 100644
--- a/pie/parasite.c
+++ b/pie/parasite.c
@@ -26,9 +26,6 @@ static struct tid_state_s {
futex_t cmd;
int ret;
- bool use_sig_blocked;
- k_rtsigset_t sig_blocked;
-
struct rt_sigframe *sigframe;
unsigned char stack[PARASITE_STACK_SIZE] __aligned(8);
@@ -207,14 +204,11 @@ static int init_thread(struct parasite_init_args *args)
ksigfillset(&to_block);
ret = sys_sigprocmask(SIG_SETMASK, &to_block,
- &tid_state[next_tid_state].sig_blocked,
+ &args->sig_blocked,
sizeof(k_rtsigset_t));
if (ret)
return -1;
- tid_state[next_tid_state].use_sig_blocked = true;
- args->sig_blocked = tid_state[next_tid_state].sig_blocked;
-
tid_state[next_tid_state].tid = sys_gettid();
tid_state[next_tid_state].sigframe = args->sigframe;
tid_state[next_tid_state].id = next_tid_state;
--
1.8.2
More information about the CRIU
mailing list