Re: Where is /dev/pts/0?
Reply #2 –
The commandline you give is slightly incorrect . I did:
# cd /proc
# for pid in /proc/[0-9]* ; do RES="`ls -l $pid/fd/* 2> /dev/null | grep pts/0`"; if [ -n "$RES" ]; then echo "Process $pid owns: $RES"; fi; done
Process /proc/1576 owns: lrwx------ 1 root root 64 Nov 28 19:46 /proc/1576/fd/1 -> /dev/pts/0 (deleted)
lrwx------ 1 root root 64 Nov 28 19:46 /proc/1576/fd/2 -> /dev/pts/0 (deleted)
Process /proc/1608 owns: lrwx------ 1 root root 64 Nov 28 19:46 /proc/1608/fd/1 -> /dev/pts/0 (deleted)
lrwx------ 1 root root 64 Nov 28 19:46 /proc/1608/fd/2 -> /dev/pts/0 (deleted)
Process /proc/1640 owns: lrwx------ 1 root root 64 Nov 28 19:46 /proc/1640/fd/1 -> /dev/pts/0 (deleted)
lrwx------ 1 root root 64 Nov 28 19:46 /proc/1640/fd/2 -> /dev/pts/0 (deleted)
Process /proc/1672 owns: lrwx------ 1 root root 64 Nov 28 19:46 /proc/1672/fd/1 -> /dev/pts/0 (deleted)
lrwx------ 1 root root 64 Nov 28 19:46 /proc/1672/fd/2 -> /dev/pts/0 (deleted)
Process /proc/1704 owns: lrwx------ 1 root root 64 Nov 28 19:46 /proc/1704/fd/1 -> /dev/pts/0 (deleted)
lrwx------ 1 root root 64 Nov 28 19:46 /proc/1704/fd/2 -> /dev/pts/0 (deleted)
Process /proc/1736 owns: lrwx------ 1 root root 64 Nov 28 19:46 /proc/1736/fd/1 -> /dev/pts/0 (deleted)
lrwx------ 1 root root 64 Nov 28 19:46 /proc/1736/fd/2 -> /dev/pts/0 (deleted)
cat /proc/1736/cmdline|tr '\0' ' '
supervise-daemon agetty.tty6 --start --pidfile /run/agetty.tty6.pid /sbin/agetty -- tty6 38400 linux
The other pids also belong to supervise-daemon.