From d37b326cb175b1857204059af17b2abe56f4ef06 Mon Sep 17 00:00:00 2001 From: yinshengkai Date: Sun, 5 May 2024 16:07:42 +0800 Subject: [PATCH] ostest: delete the code that accesses the internal fields of mutex Signed-off-by: yinshengkai --- testing/ostest/robust.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/ostest/robust.c b/testing/ostest/robust.c index 9217a279f..e71c0f2d2 100644 --- a/testing/ostest/robust.c +++ b/testing/ostest/robust.c @@ -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. */