This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug nptl/22591] pthread_rwlock_trywrlock succeeds on a read taken lock


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]