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. */