svn commit: trunk/busybox/networking
vda at busybox.net
vda at busybox.net
Wed Oct 17 11:18:49 UTC 2007
Author: vda
Date: 2007-10-17 04:18:49 -0700 (Wed, 17 Oct 2007)
New Revision: 20273
Log:
telnetd: trivial optimization
Modified:
trunk/busybox/networking/telnetd.c
Changeset:
Modified: trunk/busybox/networking/telnetd.c
===================================================================
--- trunk/busybox/networking/telnetd.c 2007-10-17 11:08:53 UTC (rev 20272)
+++ trunk/busybox/networking/telnetd.c 2007-10-17 11:18:49 UTC (rev 20273)
@@ -228,10 +228,11 @@
#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
More information about the busybox-cvs
mailing list