Skip to content
Commit 7673bf55 authored by Eric W. Biederman's avatar Eric W. Biederman
Browse files

fork: Unconditionally exit if a fatal signal is pending



In practice this does not change anything as testing for fatal_signal_pending
and exiting for with an error code duplicates the work of the next clause
which recalculates pending signals and then exits fork if any are pending.
In both cases the pending signal will trigger the slow path when existing
to userspace, and the fatal signal will cause do_exit to be called.

The advantage of making this a separate test is that it makes it clear
processing the fatal signal will terminate the fork, and it allows the
rest of the signal logic to be updated without fear that this important
case will be lost.

Signed-off-by: default avatar"Eric W. Biederman" <ebiederm@xmission.com>
parent 4ca1d3ee
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