[CRIU] [PATCH] zdtm: Use SIGWINCH instead of SIGTRAP in pthread01

Cyrill Gorcunov gorcunov at openvz.org
Fri Nov 16 10:37:08 EST 2012


Otherwise test with -d option get fail (this is because
SIGTRAP get cleared by our zdtm engine once continued
execution).

Reported-by: Andrey Vagin <avagin at openvz.org>
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 test/zdtm/live/static/pthread01.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/test/zdtm/live/static/pthread01.c b/test/zdtm/live/static/pthread01.c
index 28d42b4..d0f4a95 100644
--- a/test/zdtm/live/static/pthread01.c
+++ b/test/zdtm/live/static/pthread01.c
@@ -92,7 +92,7 @@ static void *ch_thread_1(void *arg)
 
 	sigemptyset(&blk_sigset);
 	sigprocmask(SIG_SETMASK, NULL, &blk_sigset);
-	sigaddset(&blk_sigset, SIGTRAP);
+	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



More information about the CRIU mailing list