ostest: delete the code that accesses the internal fields of mutex

Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
yinshengkai 2024-05-05 16:07:42 +08:00 committed by Xiang Xiao
parent 5e5f518822
commit d37b326cb1

View File

@ -208,7 +208,7 @@ void robust_test(void)
{
sleep(1);
}
while (kill(g_robust_mutex.pid, 0) == 0 || errno != ESRCH);
while (kill(waiter, 0) == 0 || errno != ESRCH);
/* Make the mutex consistent and try again. It should succeed this time. */