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:
parent
a35b2a5cc7
commit
7ec304e6a8
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user