Re: [PATCH v2] Ensure standard file descriptors are open on start

2020-08-28 Thread Zack Weinberg
[Moving this subthread back to the autoconf mailing list, it's not relevant to glibc.] On Thu, Aug 27, 2020 at 2:22 PM Paul Eggert wrote: > [...] it's better for FD 0 to be write-only and FDs > 1+2 to be read-only, as that's more likely to prevent buggy programs from > misbehaving further. For Au

Re: [PATCH v2] Ensure standard file descriptors are open on start

2020-08-28 Thread Paul Eggert
On 8/28/20 6:52 AM, Zack Weinberg wrote: I think that for 2.70 we should make fd 0 read-only and 1,2 write-only here, and revisit this afterward -- when we're not in a release freeze we can think about things like turning on set -e mode. Sounds good. In the longer term I doubt whether set -e i

Re: [PATCH v2] Ensure standard file descriptors are open on start

2020-08-28 Thread Nick Bowler
On 2020-08-28, Paul Eggert wrote: > On 8/28/20 6:52 AM, Zack Weinberg wrote: >> I think that for 2.70 we should make fd 0 read-only and 1,2 >> write-only here, and revisit this afterward -- when we're not in a >> release freeze we can think about things like turning on set -e mode. > > Sounds good