Commit 71e4d99c by Christian Brauner Committed by GitHub

Merge pull request #1628 from tanyifeng/fix_detect_way_of_bitmask

utils: fix the way to detect blocking signal
parents d21c3609 455f2b20
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment