From: Florian Weimer <fweimer@redhat.com>
To: Alejandro Colomar <alx@kernel.org>
Cc: Arkadiusz Drabczyk <arkadiusz@drabczyk.org>,
mtk.manpages@gmail.com, linux-man@vger.kernel.org,
libc-help@sourceware.org
Subject: Re: signal(7): why does it say that pthread_mutex_lock() and thread_cond_wait() can fail with EINTR?
Date: Thu, 02 Jan 2025 10:53:57 +0100 [thread overview]
Message-ID: <87ikqxee2y.fsf@oldenburg.str.redhat.com> (raw)
In-Reply-To: <ltdxctn6eghheiagtjfqwji22xdapzi63nvuxttgvvmh4v2236@6enzyka7yaks> (Alejandro Colomar's message of "Thu, 2 Jan 2025 01:19:38 +0100")
* Alejandro Colomar:
>> The underlying futex() call indeed fails with EINTR but it's called
>> again by both glibc and musl.
>
> I've CCed glibc, in case they can comment. Maybe this behavior changed
> at some point in the past? I don't know.
Maybe in the LinuxThreads implementation. I think NPTL has handled this
correctly from the beginning. POSIX bans the EINTR failure condition.
Thanks,
Florian
next prev parent reply other threads:[~2025-01-02 9:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-01 22:20 signal(7): why does it say that pthread_mutex_lock() and thread_cond_wait() can fail with EINTR? Arkadiusz Drabczyk
2025-01-02 0:19 ` Alejandro Colomar
2025-01-02 9:53 ` Florian Weimer [this message]
2025-01-02 12:13 ` Alejandro Colomar
2025-01-02 19:50 ` Arkadiusz Drabczyk
2025-01-03 1:08 ` Alejandro Colomar
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=87ikqxee2y.fsf@oldenburg.str.redhat.com \
--to=fweimer@redhat.com \
--cc=alx@kernel.org \
--cc=arkadiusz@drabczyk.org \
--cc=libc-help@sourceware.org \
--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.