[CRIU] [PATCH] zdtm: Use SIGWINCH instead of SIGTRAP in pthread01
Andrew Vagin
avagin at parallels.com
Fri Nov 16 16:13:26 EST 2012
On Fri, Nov 16, 2012 at 07:37:08PM +0400, Cyrill Gorcunov wrote:
> Otherwise test with -d option get fail (this is because
> SIGTRAP get cleared by our zdtm engine once continued
> execution).
I could not find this place in zdtm engine.
[root at localhost crtools]# git grep SIGTRAP test/zdtm
test/zdtm/live/static/pthread01.c: sigaddset(&blk_sigset, SIGTRAP);
>
> 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