News for hackers. Stuff that matters.
Re:Constant Time by saagarjha on Monday June 10, 2019 @07:52PM (#20151987)
> It doesn’t matter what names you give them, 1 is always stdout

No: if you close a file descriptor, the kernel should be able to reuse it for new files that you open.

Re:Constant Time by eridius on Tuesday June 11, 2019 @01:03AM (#20153120)
And if fd 1 is reused for something, that something becomes, by definition, stdout.
Re:Constant Time by jandrewrogers on Monday June 10, 2019 @10:38PM (#20152662)
This. I've worked on code bases that intentionally closed stdout.