kernel: allow fork with TIF_NOTIFY_SIGNAL pending
fork() fails if signal_pending() is true, but there are two conditions
that can lead to that:
1) An actual signal is pending. We want fork to fail for that one, like
we always have.
2) TIF_NOTIFY_SIGNAL is pending, because the task has pending task_work.
We don't need to make it fail for that case.
Allow fork() to proceed if just task_work is pending, by changing the
signal_pending() check to task_sigpending().
Signed-off-by:
Jens Axboe <axboe@kernel.dk>
Loading
-
mentioned in commit 8bc50e25
-
mentioned in commit fc48a920
-
mentioned in commit b6c7b42c
-
mentioned in commit 63c52baa
-
mentioned in commit 15b6f5f7
-
mentioned in commit 02efdf57
-
mentioned in commit f77c1fe7
-
mentioned in commit 2a8a77f2
-
mentioned in commit 6e4362ca
-
mentioned in commit 26ea7cf7
-
mentioned in commit 3a42d06c
-
mentioned in commit 71a94f2d
-
mentioned in commit bf1a1cb8
-
mentioned in commit 3b189a2f
Please sign in to comment