delorie.com/archives/browse.cgi | search |
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 <gweobia AT yahoo DOT com> |
Subject: | Bug: select() does not modify timeout (arg 5) on return |
To: | cygwin AT cygwin DOT com |
MIME-Version: | 1.0 |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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 <stdio.h> #include <sys/select.h> 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |