From: Florian Weimer <fw@deneb.enyo.de>
To: Richard Weinberger via Libc-help <libc-help@sourceware.org>
Cc: linux-man <linux-man@vger.kernel.org>,
Richard Weinberger <richard.weinberger@gmail.com>
Subject: Re: Clarification of pthread_cleanup_push() needed
Date: Tue, 21 Apr 2020 23:41:41 +0200 [thread overview]
Message-ID: <871rogpld6.fsf@mid.deneb.enyo.de> (raw)
In-Reply-To: <CAFLxGvxhdUtYudCzxJrVs7np5Aby1o9cXEDp5C9rw2kS74pDkQ@mail.gmail.com> (Richard Weinberger via Libc-help's message of "Tue, 21 Apr 2020 22:35:12 +0200")
* Richard Weinberger via Libc-help:
> But NPTL implements thread cancellation with signals, if I'm not
> completely mistaken the cleanup routine will run in signal context
> then.
Deferred cancellation only occurs in signal context if the
cancellation is acted upon from within a signal handler. For the
signal handler case, whether cancellation handlers are restricted to
async-signal-safe function calls depends on the type of signal (some
are synchronous, not asynchronous) and what is interrupted by the
signal (for asynchronous signals).
Asynchronous cancellation has even more constraints than asynchronous
signal safety, but it is rarely used.
next prev parent reply other threads:[~2020-04-21 21:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-21 20:35 Clarification of pthread_cleanup_push() needed Richard Weinberger
2020-04-21 21:41 ` Florian Weimer [this message]
2020-04-21 22:04 ` Richard Weinberger
2020-04-21 22:12 ` Florian Weimer
2020-04-21 22:48 ` Richard Weinberger
2020-04-21 23:43 ` Florian Weimer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871rogpld6.fsf@mid.deneb.enyo.de \
--to=fw@deneb.enyo.de \
--cc=libc-help@sourceware.org \
--cc=linux-man@vger.kernel.org \
--cc=richard.weinberger@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox