On Wed, Jun 10, 2009 at 12:30 AM, Doug Graham<[email protected]> wrote: > Yes, this does solve my problem. Lsof shows no weird descriptors open in > telnetd's > children. Just 0, 1, and 2 referencing /dev/pty/N, and descriptor 10 > referencing > /dev/tty. I assume the latter is an artifact of the busybox shell, which is > what I am starting from telnetd via the -l option.
Yes. ash usually has fd 10 opened. bash has fd 255. etc... I usually do "ls -l /proc/self/fd". It should have fds 0,1,2 (as usual) and fd 3 opened to /proc/$PID/fd. Nothing more. Do you see that? # ls -l /proc/self/fd total 0 lrwx------ 1 root root 64 2009-06-10 14:13 0 -> /dev/pts/0 lrwx------ 1 root root 64 2009-06-10 14:13 1 -> /dev/pts/0 lrwx------ 1 root root 64 2009-06-10 14:13 2 -> /dev/pts/0 lr-x------ 1 root root 64 2009-06-10 14:13 3 -> /proc/13127/fd -- vda _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
