3 ms·
instead of /proc/PID/fd/XX you can simply use /proc/self/fd/XX if PID is simply the pid of the current process. standard input/output/error are not necessarily
by dododo 16y ago
instead of /proc/PID/fd/XX you can simply use /proc/self/fd/XX if PID is simply the pid of the current process.
standard input/output/error are not necessarily character devices (as stated in the article). they can be anything (sockets, files, etc).