]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
utils: fix the way to detect blocking signal 1628/head
authorYifeng Tan <tanyifeng1@huawei.com>
Mon, 19 Jun 2017 10:36:13 +0000 (18:36 +0800)
committerYifeng Tan <tanyifeng1@huawei.com>
Mon, 19 Jun 2017 10:36:13 +0000 (18:36 +0800)
Signed-off-by: Yifeng Tan <tanyifeng1@huawei.com>
src/lxc/utils.c

index dc210de23d32855532d619c8b2ca8386eea54700..4419e672e84e1d32cc7b1250e503ba51b93b8995 100644 (file)
@@ -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: