I was referring to this question to see if it is possible to spy on another running process' stdout. One answer suggests using tail -f /proc/<PID>/fd/1
to do so. So I opened two terminal sessions to try it. In the first terminal, I echoed the PID using echo $$
. In the second terminal, I executed the tail command (without root privileges). I then noticed that there is significant hangup in the first terminal's IO (typing into the shell was disrupted and there was significant key delay). Why does this happen?
I'm running Ubuntu 18.04.