From: Paul Eggert <eggert@cs.ucla.edu>
To: "Arsen Arsenović" <arsen@aarsen.me>
Cc: libc-alpha@sourceware.org
Subject: Re: [PATCH] Ensure standard file descriptors are open on start
Date: Tue, 18 Aug 2020 15:37:41 -0700 [thread overview]
Message-ID: <39be97ef-c769-39c8-1cb4-e4b6136c05b8@cs.ucla.edu> (raw)
In-Reply-To: <20200818223139.mmo5ik5o5gvh4z6a@bstg>
On 8/18/20 3:31 PM, Arsen Arsenović wrote:
> This makes all reads EOFs and all writes successful, which would be what,
> at least, I expect when closing one of the standard streams.
That's not what I expect. There is a benefit for a program like 'cat' to
report an error (instead of silently succeeding) if its invoker closed stdin
or stdout. That's why glibc behaves the way it does, and it seems a behavior
worth keeping.
next prev parent reply other threads:[~2020-08-18 22:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-18 17:50 Arsen Arsenović
2020-08-18 20:11 ` Paul Eggert
2020-08-18 22:31 ` Arsen Arsenović
2020-08-18 22:37 ` Paul Eggert [this message]
2020-08-18 23:28 ` Arsen Arsenović
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=39be97ef-c769-39c8-1cb4-e4b6136c05b8@cs.ucla.edu \
--to=eggert@cs.ucla.edu \
--cc=arsen@aarsen.me \
--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).