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

Arsen Arsenović arsen@aarsen.me
Fri Aug 28 00:12:43 GMT 2020


Excuse me, I sent this message, by mistake, to Paul directly, without CCing the
mailing list. To further discussion, I am reposting this. I'm sorry for the
inconvenience:

> I agree they should be open. But 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.
Since I agree with this too, we have an agreement on what should happen(?):
1) update comments in the patch to be more specific
2) ensure "wrong direction" opens are used to detect errors (like they were
   originally)

I can do this tomorrow in spare time, if that is what the team sees as the
right thing to do. I'm waiting for further comments in case I missed something.

-- 
Arsen Arsenović
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20200828/3a5b3dab/attachment.sig>


More information about the Libc-alpha mailing list