pthread/join: catch null pexit_value case

This adds handling for null pointer in errout route as it crashes my
ostest sometimes.

Signed-off-by: Yanfeng Liu <yfliu2008@qq.com>
This commit is contained in:
Yanfeng Liu 2024-05-10 10:05:42 +08:00 committed by Xiang Xiao
parent a35b2a5cc7
commit 7ec304e6a8

View File

@ -158,6 +158,14 @@ errout:
leave_cancellation_point();
sinfo("Returning %d, exit_value %p\n", ret, *pexit_value);
if (pexit_value)
{
sinfo("Returning %d, exit_value %p\n", ret, *pexit_value);
}
else
{
sinfo("Returning %d\n", ret);
}
return ret;
}