linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Karstens, Nate" <Nate.Karstens@garmin.com>
To: Adhemerval Zanella <adhemerval.zanella@linaro.org>,
	"mtk.manpages@gmail.com" <mtk.manpages@gmail.com>
Cc: "linux-man@vger.kernel.org" <linux-man@vger.kernel.org>,
	"libc-alpha@sourceware.org" <libc-alpha@sourceware.org>,
	"willy@infradead.org" <willy@infradead.org>
Subject: RE: [PATCH] system.3: Indicate MT-Unsafe
Date: Wed, 7 Oct 2020 14:35:11 +0000	[thread overview]
Message-ID: <b9349b7939b140fc8e53d3b96807affc@garmin.com> (raw)
In-Reply-To: <6dec3d89-a16e-8be5-6f85-4ff4e51e9136@linaro.org>

I'm fine with adding a "race" qualifier. Do you have any ideas on the type of race? I didn't see anything in the other man-pages that jumped out as being correct.

Thanks,

Nate

-----Original Message-----
From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Sent: Tuesday, October 06, 2020 12:26
To: Karstens, Nate <Nate.Karstens@garmin.com>; mtk.manpages@gmail.com
Cc: linux-man@vger.kernel.org; libc-alpha@sourceware.org; willy@infradead.org
Subject: Re: [PATCH] system.3: Indicate MT-Unsafe

CAUTION - EXTERNAL EMAIL: Do not click any links or open any attachments unless you trust the sender and know the content is safe.


On 06/10/2020 13:15, Nate Karstens via Libc-alpha wrote:
> The fact that system(3) does not support pthread_atfork(3) also means
> that it is not thread safe. See the discussion for the proposal of a
> close-on-fork flag in the 2020 April and May timeframe, especially:
>
> https://urldefense.com/v3/__https://lkml.org/lkml/2020/5/15/1067__;!!E
> Jc4YC3iFmQ!D9YVAE760hT-YFoOT14KmIu4y2cjQb8ZflVgpX-3rxgBF2WvxyATUeQogZF
> Ffv2sIQ$
>
> Signed-off-by: Nate Karstens <nate.karstens@garmin.com>

Not sure if man pages characterizes file descriptor leak as mt-unsafe, at least we don't have this concept on glibc manual.  In fact, I think adding a MT-Unsafe mark to this potentially make any libc call that is not atomic potentially MT-Unsafe, either when they do not concurrent trigger race issues regarding memory semantic. At least I think it should add a 'race'
mark to indicate what exactly is MT-unsafe (as for other implementations).

> ---
>  man3/system.3 | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/man3/system.3 b/man3/system.3 index aef40417a..8730fabd3
> 100644
> --- a/man3/system.3
> +++ b/man3/system.3
> @@ -127,7 +127,7 @@ l l l.
>  Interface    Attribute       Value
>  T{
>  .BR system ()
> -T}   Thread safety   MT-Safe
> +T}   Thread safety   MT-Unsafe
>  .TE
>  .SH CONFORMING TO
>  POSIX.1-2001, POSIX.1-2008, C89, C99.
>

________________________________

CONFIDENTIALITY NOTICE: This email and any attachments are for the sole use of the intended recipient(s) and contain information that may be Garmin confidential and/or Garmin legally privileged. If you have received this email in error, please notify the sender by reply email and delete the message. Any disclosure, copying, distribution or use of this communication (including attachments) by someone other than the intended recipient is prohibited. Thank you.

  reply	other threads:[~2020-10-07 14:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-06 16:15 [PATCH] system.3: Indicate MT-Unsafe Nate Karstens
2020-10-06 17:26 ` Adhemerval Zanella
2020-10-07 14:35   ` Karstens, Nate [this message]
2020-10-07 18:06     ` Adhemerval Zanella
2020-10-27  7:08       ` Michael Kerrisk (man-pages)
2020-10-30 20:59         ` Karstens, Nate

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=b9349b7939b140fc8e53d3b96807affc@garmin.com \
    --to=nate.karstens@garmin.com \
    --cc=adhemerval.zanella@linaro.org \
    --cc=libc-alpha@sourceware.org \
    --cc=linux-man@vger.kernel.org \
    --cc=mtk.manpages@gmail.com \
    --cc=willy@infradead.org \
    /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;
as well as URLs for NNTP newsgroup(s).