[PATCH] nptl: correct comment in pthread_mutex_trylock
Wolfram Sang
wsa@the-dreams.de
Tue Feb 19 14:20:00 GMT 2019
I found this typo when educating myself about the EOWNERDEAD topic.
---
I don't have a CA and I don't think I need one with this trivial change being
my first glibc contribution. Let me know if you disagree.
It's a funny typo, though :)
nptl/pthread_mutex_trylock.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nptl/pthread_mutex_trylock.c b/nptl/pthread_mutex_trylock.c
index bf2869eca2..3bba464409 100644
--- a/nptl/pthread_mutex_trylock.c
+++ b/nptl/pthread_mutex_trylock.c
@@ -130,7 +130,7 @@ __pthread_mutex_trylock (pthread_mutex_t *mutex)
__asm ("" ::: "memory");
THREAD_SETMEM (THREAD_SELF, robust_head.list_op_pending, NULL);
- /* Note that we deliberately exist here. If we fall
+ /* Note that we deliberately exit here. If we fall
through to the end of the function __nusers would be
incremented which is not correct because the old
owner has to be discounted. */
--
2.11.0
More information about the Libc-alpha
mailing list