Comment on Opening /proc/self/fd/1 is not the same as dup(1)parentComments−kazinator2yIf opening the other process' entry shares the description, that means you're messing with its read/write pointer.−tsimionescu2yI know, which is why I'm hoping that's not the case.But then, if that's not the case for /proc/<other>/fd/<n>, why would it be for /proc/self/fd/<n> ? Where does this expectation come from?
Comments
If opening the other process' entry shares the description, that means you're messing with its read/write pointer.
I know, which is why I'm hoping that's not the case.
But then, if that's not the case for /proc/<other>/fd/<n>, why would it be for /proc/self/fd/<n> ? Where does this expectation come from?