aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-09-07 13:43:28 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-09-07 13:43:28 +0000
commit87f3b26b3a17369c12f4f9a70d6845796f8648d6 (patch)
tree2f7fe9fc910d5e97f695c902f848db497fec8bfd /shell
parent40f0bcf9d3f8f8a8d14a9b2cff51761019c75cf4 (diff)
downloadbusybox-w32-87f3b26b3a17369c12f4f9a70d6845796f8648d6.tar.gz
busybox-w32-87f3b26b3a17369c12f4f9a70d6845796f8648d6.tar.bz2
busybox-w32-87f3b26b3a17369c12f4f9a70d6845796f8648d6.zip
*: replace select-for-one descriptor with poll, it's smaller.
$ ./.cmk bloatcheck function old new delta readit 406 364 -42 syslogd_main 1249 1206 -43 traceroute_main 4115 4060 -55 mysleep 112 45 -67 arpping 579 441 -138 tftp 1575 1182 -393 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/6 up/down: 0/-738) Total: -738 bytes text data bss dec hex filename 770580 1051 10764 782395 bf03b busybox_old 769820 1051 10764 781635 bed43 busybox_unstripped
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 46f00dd3d..ec3e17618 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -11589,6 +11589,7 @@ readcmd(int argc, char **argv)
11589#endif 11589#endif
11590#if ENABLE_ASH_READ_TIMEOUT 11590#if ENABLE_ASH_READ_TIMEOUT
11591 if (ts.tv_sec || ts.tv_usec) { 11591 if (ts.tv_sec || ts.tv_usec) {
11592// TODO: replace with poll, it is smaller
11592 FD_ZERO(&set); 11593 FD_ZERO(&set);
11593 FD_SET(0, &set); 11594 FD_SET(0, &set);
11594 11595