Hallo Thomas! > The flush itself is not enough. A flush happens anyway later in > exitshell(), but the telnet daemon seems to need more time. flush probably needs an extra tcflush to empty the tty kernel buffers. As telnetd uses pseudo tty's there is such an kernel buffer too. If slave side of pty is closed before telnetd received all data from master pty some telnetd's (and other applications) close the upstream connection before transmitting the last output lines :-( ... but doing a 2 second sleep is simpler and works in about 99 percent :-)
-- Harald _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
