From: Josh Triplett <josh@joshtriplett.org>
To: linux-man@vger.kernel.org
Cc: Alejandro Colomar <alx.manpages@gmail.com>,
Michael Kerrisk <mtk.manpages@gmail.com>
Subject: Should getaddrinfo_a be marked "MT-Safe env locale" (not "MT-Safe")?
Date: Mon, 8 Mar 2021 10:44:57 -0800 [thread overview]
Message-ID: <YEZwqXhBTzbMAyzo@localhost> (raw)
getaddrinfo_a uses a thread to call getaddrinfo asynchronously. However,
as far as I can tell this means it still has all the same caveats as
getaddrinfo. Notably, it will result in a getenv call, making it unsafe
if another thread concurrently touches the environment.
Given this, I *think* it would make sense for getaddrinfo_a to be marked
"MT-Safe env locale" just like getaddrinfo. This would make sure people
know that getaddrinfo_a does not avoid the thread-safety issues of
getaddrinfo.
- Josh Triplett
reply other threads:[~2021-03-08 18:46 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=YEZwqXhBTzbMAyzo@localhost \
--to=josh@joshtriplett.org \
--cc=alx.manpages@gmail.com \
--cc=linux-man@vger.kernel.org \
--cc=mtk.manpages@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.