summaryrefslogtreecommitdiff
path: root/networking/Config.in
diff options
context:
space:
mode:
authorDenys Vlasenko2009-09-04 02:21:13 +0200
committerDenys Vlasenko2009-09-04 02:21:13 +0200
commited1667e8ee91243b77b02cc4f160fe4b80a30385 (patch)
tree54520fc2069e9f8f21a8fad0cfc1de163b5d4017 /networking/Config.in
parentcfc216345e18081cba9ac3ed0464abf5d7f40cea (diff)
downloadbusybox-ed1667e8ee91243b77b02cc4f160fe4b80a30385.zip
busybox-ed1667e8ee91243b77b02cc4f160fe4b80a30385.tar.gz
telnetd: add -w ("inetd wait") option. Can be configured off.
gcc fils to fully optimize it out when it's off: function old new delta telnetd_main 1527 1548 +21 packed_usage 26596 26587 -9 but nevertheless it's a useful (and so far single) example how to write "inetd wait" tcp service. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/Config.in')
-rw-r--r--networking/Config.in21
1 files changed, 21 insertions, 0 deletions
diff --git a/networking/Config.in b/networking/Config.in
index 83522ff..59e88e0 100644
--- a/networking/Config.in
+++ b/networking/Config.in
@@ -788,6 +788,27 @@ config FEATURE_TELNETD_STANDALONE
help
Selecting this will make telnetd able to run standalone.
+config FEATURE_TELNETD_INETD_WAIT
+ bool "Support -w SEC option (inetd wait mode)"
+ default n
+ depends on FEATURE_TELNETD_STANDALONE
+ help
+ This option allows you to run telnetd in "inet wait" mode.
+ Example inetd.conf line (note "wait", not usual "nowait"):
+
+ telnet stream tcp wait root /bin/telnetd telnetd -w10
+
+ In this example, inetd passes _listening_ socket_ as fd 0
+ to telnetd when connection appears.
+ telnetd will wait for connections until all existing
+ connections are closed, and no new connections
+ appear during 10 seconds. Then it exits, and inetd continues
+ to listen for new connections.
+
+ This option is rarely used. "tcp nowait" is much more usual
+ way of running tcp services, including telnetd.
+ You most probably want to say N here.
+
config TFTP
bool "tftp"
default n