diff options
author | Denis Vlasenko | 2007-10-15 22:09:15 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-10-15 22:09:15 +0000 |
commit | 2450c450ab8af271521c18b3c5e8e1b3c9041838 (patch) | |
tree | e784b890030dfc060bbfe4e3b3a8cd697db48dce /include/usage.h | |
parent | 10916c5c6b34a9268356ef5447f5de0b20089aa7 (diff) | |
download | busybox-2450c450ab8af271521c18b3c5e8e1b3c9041838.zip busybox-2450c450ab8af271521c18b3c5e8e1b3c9041838.tar.gz |
telnetd: at Alexander Kriegisch <Alexander@kriegisch.name> 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
Diffstat (limited to 'include/usage.h')
-rw-r--r-- | include/usage.h | 2 |
1 files changed, 2 insertions, 0 deletions
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" \ |