unofficial mirror of libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: "Štěpán Němec" <stepnem@smrk.net>
To: Florian Weimer <fweimer@redhat.com>
Cc: libc-alpha@sourceware.org
Subject: Re: [PATCH] manual: Drop incorrect statement on PIPE_BUF and blocking writes
Date: Mon, 25 Mar 2024 13:13:56 +0100	[thread overview]
Message-ID: <20240325131356+0100.708751-stepnem@smrk.net> (raw)
In-Reply-To: <87frwea5zs.fsf@oldenburg.str.redhat.com>

On Mon, 25 Mar 2024 12:46:47 +0100
Florian Weimer wrote:

> * Štěpán Němec:
>
>> diff --git a/manual/pipe.texi b/manual/pipe.texi
>> index 483c40c5c3dd..8a9a275cafe7 100644
>> --- a/manual/pipe.texi
>> +++ b/manual/pipe.texi
>> @@ -312,8 +312,7 @@
>>  
>>  Reading or writing a larger amount of data may not be atomic; for
>>  example, output data from other processes sharing the descriptor may be
>> -interspersed.  Also, once @code{PIPE_BUF} characters have been written,
>> -further writes will block until some characters are read.
>> +interspersed.
>
> Maybe “further may block” instead?  I think the reference to PIPE_BUF
> and blocking could still be helpful, except that it's not a guarantee,
> as you correctly point out.

(Assuming you meant “further writes may block”, i.e., just
s/will/may/ in the pre-patch text.)

Ignoring the fact that the sentence seems simply wrong, at
least in environments where the vast majority of glibc
installations run (Linux with the relevant parameters as
described in my commit message), I don't find the sentence
particularly helpful, as the section focuses on _atomicity_,
not blocking, so I find the sudden side note on blocking
somewhat out of place here in any case.

And as for your particular suggestion (if I understood it
correctly), I would find that formulation _very_ unhelpful,
unless supplemented by additional details (i.e., under what
conditions "may" the blocking happen; but again, why talk
about this at all in a section titled "Pipe Atomicity"?).

> Do you have copyright assignment?

I do not, and I thought it wasn't necessary for this kind of
change.

> If not, please add Signed-off-by: in a second submission
> of the patch.

Will do (if the result of the discussion calls for it, i.e.,
some version of my patch turns out acceptable).

Thanks,

  Štěpán

  reply	other threads:[~2024-03-25 12:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-25  8:59 [PATCH] manual: Drop incorrect statement on PIPE_BUF and blocking writes Štěpán Němec
2024-03-25 11:46 ` Florian Weimer
2024-03-25 12:13   ` Štěpán Němec [this message]
2024-03-25 16:20     ` Zack Weinberg
2024-03-25 21:32       ` Štěpán Němec

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

  List information: https://www.gnu.org/software/libc/involved.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240325131356+0100.708751-stepnem@smrk.net \
    --to=stepnem@smrk.net \
    --cc=fweimer@redhat.com \
    --cc=libc-alpha@sourceware.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 read-only IMAP folder(s) and NNTP newsgroup(s).