Skip to content

Commit

Permalink
utils: fix the way to detect blocking signal
Browse files Browse the repository at this point in the history
Signed-off-by: Yifeng Tan <tanyifeng1@huawei.com>
  • Loading branch information
Yifeng Tan committed Jun 19, 2017
1 parent d21c360 commit 455f2b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lxc/utils.c
Expand Up @@ -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:
Expand Down

0 comments on commit 455f2b2

Please sign in to comment.