This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug nptl/18243] sem_wait, sem_timedwait are cancellation points shm_open is not
- From: "nszabolcs at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Mon, 05 Sep 2016 22:45:37 +0000
- Subject: [Bug nptl/18243] sem_wait, sem_timedwait are cancellation points shm_open is not
- Auto-submitted: auto-generated
- References: <bug-18243-131@http.sourceware.org/bugzilla/>
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.