>Also there's no guarantee whatsoever that /proc/123 is going to refer to a specific process
does using openat solve that or is there some kind of directory inode reuse occurring?
does using openat solve that or is there some kind of directory inode reuse occurring?