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/12674] sem_post/sem_wait race causing sem_post to return EINVAL


http://sourceware.org/bugzilla/show_bug.cgi?id=12674

--- Comment #4 from Ulrich Drepper <drepper.fsp at gmail dot com> 2011-04-19 11:25:39 UTC ---
There cannot be any question that it is illegal.  You pass a pointer to the
semaphore to sem_post and just because it is half-finished and a sem_wait
succeeds this doesn't mean the call must be done.  As I said, only when the
sem_post call also returns is the semaphore unused.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- 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]