5 ms·
They can, yes. If you close all of them, the next files you open will get the 0, 1, and 2 file descriptors. It's a fairly common idiom to close everything, ope
by falcolas 12y ago
They can, yes. If you close all of them, the next files you open will get the 0, 1, and 2 file descriptors.
It's a fairly common idiom to close everything, open a handle to /dev/null, and duplicate it twice to get 0, 1, and 2 pointing at /dev/null.