From 2450c450ab8af271521c18b3c5e8e1b3c9041838 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Mon, 15 Oct 2007 22:09:15 +0000 Subject: telnetd: at Alexander Kriegisch insistence add an option to close sessions as soon as child exits. Maybe it should be a CONFIG option. OTOH, maybe it should be always on, as it mimics, say, getty's behaviour. function old new delta handle_sigchld - 49 +49 telnetd_main 1312 1355 +43 .rodata 123429 123466 +37 packed_usage 22770 22806 +36 make_new_session 525 532 +7 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 4/0 up/down: 172/0) Total: 172 bytes text data bss dec hex filename 676285 2538 12104 690927 a8aef busybox_old 676421 2538 12104 691063 a8b77 busybox_unstripped --- include/usage.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/usage.h') diff --git a/include/usage.h b/include/usage.h index 210e1f2..1e05532 100644 --- a/include/usage.h +++ b/include/usage.h @@ -3517,6 +3517,8 @@ USE_FEATURE_RUN_PARTS_FANCY("\n -l Prints names of all matching files even when "\n\nOptions:" \ "\n -l LOGIN Exec LOGIN on connect" \ "\n -f issue_file Display issue_file instead of /etc/issue" \ + "\n -K Close connection as soon as login exits" \ + "\n (normally wait until all programs close slave pty)" \ USE_FEATURE_TELNETD_STANDALONE( \ "\n -p PORT Port to listen to" \ "\n -b ADDR Address to bind to" \ -- cgit v1.1