[PATCH] zdtm: Fix pthread01 test case
Cyrill Gorcunov
gorcunov at openvz.org
Fri Nov 16 16:41:54 EST 2012
Fix missed conversion from commit
124e70097d67d1dbd7263a53adfc457df2f5a351
Reported-by: Andrew Vagin <avagin at parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
test/zdtm/live/static/pthread01.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/zdtm/live/static/pthread01.c b/test/zdtm/live/static/pthread01.c
index d0f4a95..2c1652f 100644
--- a/test/zdtm/live/static/pthread01.c
+++ b/test/zdtm/live/static/pthread01.c
@@ -48,7 +48,7 @@ static void *ch_thread_2(void *arg)
memcpy(tls_data.rand_string, __tls_data, sizeof(tls_data.rand_string));
sigemptyset(&blk_sigset);
- sigprocmask(SIG_SETMASK, NULL, &blk_sigset);
+ pthread_sigmask(SIG_SETMASK, NULL, &blk_sigset);
sigaddset(&blk_sigset, SIGFPE);
pthread_sigmask(SIG_SETMASK, &blk_sigset, NULL);
memcpy(&tls_data.blk_sigset, &blk_sigset, sizeof(tls_data.blk_sigset));
@@ -91,7 +91,7 @@ static void *ch_thread_1(void *arg)
memcpy(tls_data.rand_string, __tls_data, sizeof(tls_data.rand_string));
sigemptyset(&blk_sigset);
- sigprocmask(SIG_SETMASK, NULL, &blk_sigset);
+ pthread_sigmask(SIG_SETMASK, NULL, &blk_sigset);
sigaddset(&blk_sigset, SIGWINCH);
pthread_sigmask(SIG_SETMASK, &blk_sigset, NULL);
memcpy(&tls_data.blk_sigset, &blk_sigset, sizeof(tls_data.blk_sigset));
--
1.7.7.6
--Qxx1br4bt0+wmkIi--
More information about the CRIU
mailing list