On Linux, why is there a global / dev / stdin file for all processes?

Should the standard input for different processes be unique? If so, should the path of the stdin file look like /dev/pid/stdininstead of global /dev/stdin?

Does anyone have any ideas about this?

+4
source share
1 answer

/dev/stdin unique in that

  • this is a symbolic link to /proc/self/fd/0
  • /proc/self is a symbolic link that your workflow views only on its process id

/proc ( ), .

:

+6

All Articles