On 8/13/19 5:32 AM, maya%NetBSD.org@localhost wrote:
On Mon, Aug 12, 2019 at 03:19:40PM +0200, Christian Groessler wrote:bash-5.0$ ps l UID PID PPID CPU PRI NI VSZ RSS WCHAN STAT TTY TIME COMMAND 1000 397 356 0 85 0 13992 4008 wait Is ttyp0 0:00.05 -bashWhat is ttyp0?
I had started a remote "xterm" over "rsh". ttyp0 is the pseudo-tty it is using. Then I started "screen" to have multiple ttys.
I've just noticed: bash-5.0$ ps ax PID TTY STAT TIME COMMAND 0 ? DKl 9:11.04 [system] 1 ? Is 0:00.02 init -s 149 ? Ss 0:00.19 /usr/sbin/syslogd -s 310 ? Is 0:00.01 /usr/sbin/sshd 427 ? I 0:00.11 qmgr -l -t unix -u 466 ? Is 0:00.36 /usr/libexec/postfix/master -w 476 ? Ss 0:00.01 /usr/sbin/inetd -l 496 ? Is 0:00.25 /usr/sbin/cron 548 ? I 0:00.02 rshd -L 706 ? Z 0:00.00 (xterm) 815 ? I 0:00.02 rshd -L 826 ? Z 0:00.00 (xterm) 3262 ? S 0:00.02 rshd -L 3288 ? Z 0:00.00 (ls) 4062 ? I 0:00.02 rshd -L 5585 ? I 0:00.02 rshd -L 6574 ? Z 0:00.00 (xterm) 7025 ? Z 0:00.00 (xterm) 7840 ? Z 0:00.00 (ls) 7925 ? I 0:00.02 rshd -L 8211 ? I 0:00.02 rshd -L 8214 ? Z 0:00.00 (xterm) 8281 ? I 0:00.02 rshd -L 8399 ? I 0:00.02 rshd -L 8436 ? Z 0:00.00 (xterm) 8482 ? I 0:00.02 rshd -L 8810 ? I 0:00.02 rshd -L 11907 ? Z 0:00.00 (xterm) 12327 ? Z 0:00.00 (xterm) 13853 ? Ss 0:00.09 /usr/X11R7/bin/xterm -e /usr/pkg/bin/bash --login 14663 ? S 0:00.02 rshd -L 15080 ? I 0:00.04 pickup -l -t unix -u 15327 ? Z 0:00.00 (xterm) 9998 ttyp0 O+ 0:00.00 ps -ax 15892 ttyp0 Ss 0:00.02 /usr/pkg/bin/bash --login 376 ttyE0 Is+ 0:00.01 /usr/libexec/getty std.9600 console 521 ttyE1 Is+ 0:00.00 /usr/libexec/getty std.9600 ttyE1 505 ttyE2 Is+ 0:00.01 /usr/libexec/getty std.9600 ttyE2 503 ttyE3 Is+ 0:00.01 /usr/libexec/getty std.9600 ttyE3 bash-5.0$I seems that rshd doesn't detect the termination of xterm, see all these xterm zombies and rshd processes.
Forgot to mention, NetBSD and pkgsrc versions are -current from around Jul-23.
regards, chris