Avoid a deadlock in forked psx thread exit.

go/captree was seeing lots of libcap_psx_test processes hanging around.
It turns out that the newly added _psx_cleanup() function was deadlocking
because inside a forked processes the psx_tracker.state was _PSX_INFORK
and never _PSX_IDLE.

This completes the fix for:


Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
1 file changed