3 ms·
> 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 y
by saagarjha 7y ago
> 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.
- jandrewrogers 7y agoThis. I've worked on code bases that intentionally closed stdout.
- eridius 7y agoAnd if fd 1 is reused for something, that something becomes, by definition, stdout.