Am Freitag 04 Februar 2011, 16:08:20 schrieb Harald Becker:
> Could it be, you need to flush after printf to forward the message? Some
> telnetd's have this problem.
>
> In addition a small sleep of 1 or 2 seconds after message but before
> exit due to auto logout could be a good decision (allows human notice of
> message if screen gets cleared, e.g. due to respawning of getty on tty).
Danke Harald!
These lines (added after the printf)
fflush_all();
sleep(2);
did the trick.
The flush itself is not enough. A flush happens anyway later in
exitshell(), but the telnet daemon seems to need more time.
Thomas
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox