[PATCH] man/man2/futex_waitv.2: Fix example compilation

André Almeida <[email protected]>
Newsgroups org.kernel.vger.linux-man
Message-ID <[email protected]>
The example doesn't compile because it calls the undefined function
my_futex_wait_private(), which should be my_futex_wake_private().

Signed-off-by: André Almeida <[email protected]>
---
 man/man2/futex_waitv.2 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/man/man2/futex_waitv.2 b/man/man2/futex_waitv.2
index 9dfad84ce..4158f297d 100644
--- a/man/man2/futex_waitv.2
+++ b/man/man2/futex_waitv.2
@@ -352,7 +352,7 @@ worker(void *arg)
 \&
 	usleep(*futex * 10000);
 	*futex *= 2;
-	my_futex_wait_private(futex, 1);
+	my_futex_wake_private(futex, 1);
 	return NULL;
 }
 \&
-- 
2.55.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.