Skip to content

Comment on Opening /proc/self/fd/1 is not the same as dup(1)parent

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?

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.