Commit 455f2b20 by Yifeng Tan

utils: fix the way to detect blocking signal

parent d21c3609
...@@ -1928,7 +1928,7 @@ bool task_blocking_signal(pid_t pid, int signal) ...@@ -1928,7 +1928,7 @@ bool task_blocking_signal(pid_t pid, int signal)
goto out; goto out;
} }
if (sigblk & signal) if (sigblk & (1 << (signal - 1)))
bret = true; bret = true;
out: 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