projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0de37e1
)
telnetd: trivial optimization
author
Denis Vlasenko
<vda.linux@googlemail.com>
Wed, 17 Oct 2007 11:18:49 +0000
(11:18 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Wed, 17 Oct 2007 11:18:49 +0000
(11:18 -0000)
networking/telnetd.c
patch
|
blob
|
history
diff --git
a/networking/telnetd.c
b/networking/telnetd.c
index 7b799dcf836ed3c92a7f4a4b162b05853d3b8313..1ca6fdece01f4145932b14f9f4d59ad5d734e0f6 100644
(file)
--- a/
networking/telnetd.c
+++ b/
networking/telnetd.c
@@
-228,10
+228,11
@@
make_new_session(
#if ENABLE_FEATURE_TELNETD_STANDALONE
ts->sockfd_read = sock;
ndelay_on(sock);
- if (!sock) /* We are called with fd 0 - we are in inetd mode */
- sock++;
+ if (!sock) { /* We are called with fd 0 - we are in inetd mode */
+ sock++; /* so use fd 1 for output */
+ ndelay_on(sock);
+ }
ts->sockfd_write = sock;
- ndelay_on(sock);
if (sock > maxfd)
maxfd = sock;
#else