HomeFreeBSD

When process is exiting, check for suspension regardless of

Description

When process is exiting, check for suspension regardless of
multithreaded status of the process.

The stopped state must be cleared before P_WEXIT is set. A stop
signal delivered just before first PROC_LOCK() block in exit1(9) would
put the process into pending stop with P_WEXIT set or assertion
triggered. Also recheck for the suspension after failed
thread_single(9) call, since process lock could be dropped.

Reported and tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

Details

Provenance
kibAuthored on Dec 8 2014, 4:02 PM
Parents
rG5dc4735cb396: Adjust the |x| small limit from 0x1p-7 to 0x1p-9. This
Branches
Unknown
Tags
Unknown

Event Timeline