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/18243] sem_wait, sem_timedwait are cancellation points shm_open is not


https://sourceware.org/bugzilla/show_bug.cgi?id=18243

--- Comment #2 from Szabolcs Nagy <nszabolcs at gmail dot com> ---
> * The thread is suspended at a cancellation point and the event for which it is waiting occurs

but that's not the case:

the thread is suspended somewhere,
then it gets canceled,
then it continues and executes (a non-blocking) sem_wait.

i.e. the cancellation request is observably before the
canceled sem_wait call, so the target thread cannot
be suspended there at the time of the request.

-- 
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]