2020-05-30 02:16:18 +0700, Robert Elz: > Date: Fri, 29 May 2020 18:02:24 +0100 > From: Stephane Chazelas <steph...@chazelas.org> > Message-ID: <20200529170224.ul27advxyfyeh...@chazelas.org> > > | Why? > > It is kind of the definition... the numbered fd's are all that > is passed from process to process (via exec), not the FILE * objects, > yet the FILE * objects are what are mostly used to access them. [...]
Sorry, that was my misreading of the initial message. I thought it was saying that fd 0, 1 and 2 were meant to point to the same open file description (as they are in processes started by login/terminal emulators...). -- Stephane