X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=1.0 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Message-ID: <790762.40188.qm@web35906.mail.mud.yahoo.com> Date: Wed, 10 Feb 2010 14:29:23 -0800 (PST) From: Javier Subject: Bug: select() does not modify timeout (arg 5) on return To: cygwin AT cygwin DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com select() call with specified timeout in argument 5 is not altered on return= when time is up. on windows code below returns: should be 0.0 but we have: 5.0 on linux code below returns: should be 0.0 but we have: 0.0 uname -a: CYGWIN_NT-5.1 computer 1.7.1(0.218/5/3) 2009-12-07 11:48 i686 Cygwin ----- #include #include int main() { struct timeval tm; tm.tv_sec =3D 5; tm.tv_usec =3D 0; select(1, NULL, NULL, NULL, &tm); printf("should be 0.0 but we have: %ld.%ld\n", tm.tv_sec, tm.tv_usec); } ----- Javier -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple