This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug nptl/22591] pthread_rwlock_trywrlock succeeds on a read taken lock
- From: "fweimer at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Wed, 20 Jun 2018 13:16:04 +0000
- Subject: [Bug nptl/22591] pthread_rwlock_trywrlock succeeds on a read taken lock
- Auto-submitted: auto-generated
- References: <bug-22591-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=22591
Florian Weimer <fweimer at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |fweimer at redhat dot com
Resolution|--- |INVALID
--- Comment #1 from Florian Weimer <fweimer at redhat dot com> ---
Please don't ignore compiler warnings.
mt.c: In function ‘main’:
mt.c:13:3: warning: format ‘%d’ expects a matching ‘int’ argument [-Wformat=]
printf ("trywrlock %d\n");
^
mt.c:6:7: warning: variable ‘rc’ set but not used [-Wunused-but-set-variable]
int rc;
^
Fixing this, I get 16 (EBUSY) as the output, which is expected.
--
You are receiving this mail because:
You are on the CC list for the bug.