From ed1667e8ee91243b77b02cc4f160fe4b80a30385 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Fri, 4 Sep 2009 02:21:13 +0200 Subject: 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 --- networking/Config.in | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'networking/Config.in') 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 -- cgit v1.1