[lxc-devel] [lxc/master] fix the way to detect blocking signal
tanyifeng on Github
lxc-bot at linuxcontainers.org
Mon Jun 19 02:10:57 UTC 2017
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 447 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20170619/aa547e32/attachment.bin>
-------------- next part --------------
From 92f7ebeeeac1f181063e765d777210f668b80d81 Mon Sep 17 00:00:00 2001
From: Yifeng Tan <tanyifeng1 at huawei.com>
Date: Mon, 19 Jun 2017 18:25:41 +0800
Subject: [PATCH] fix the way to detect blocking signal
Signed-off-by: Yifeng Tan <tanyifeng1 at huawei.com>
---
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:
More information about the lxc-devel
mailing list