The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxc/pull/1628
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === "sigblk" is bitmask, so we use bit shift operators to detect whether the "signal" is blocked. Signed-off-by: Yifeng Tan <[email protected]>
From 92f7ebeeeac1f181063e765d777210f668b80d81 Mon Sep 17 00:00:00 2001 From: Yifeng Tan <[email protected]> Date: Mon, 19 Jun 2017 18:25:41 +0800 Subject: [PATCH] fix the way to detect blocking signal Signed-off-by: Yifeng Tan <[email protected]> --- src/lxc/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/utils.c b/src/lxc/utils.c index dc210de23..9cb154b68 100644 --- a/src/lxc/utils.c +++ b/src/lxc/utils.c @@ -1928,7 +1928,7 @@ bool task_blocking_signal(pid_t pid, int signal) goto out; } - if (sigblk & signal) + if (sigblk & (1 << (signal - 1)) bret = true; out:
_______________________________________________ lxc-devel mailing list [email protected] http://lists.linuxcontainers.org/listinfo/lxc-devel
