delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/02/10/21:56:56

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,SPF_SOFTFAIL
X-Spam-Check-By: sourceware.org
Message-ID: <4B7371EF.90607@byu.net>
Date: Wed, 10 Feb 2010 19:56:47 -0700
From: Eric Blake <ebb9 AT byu DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Bug: select() does not modify timeout (arg 5) on return
References: <790762 DOT 40188 DOT qm AT web35906 DOT mail DOT mud DOT yahoo DOT com>
In-Reply-To: <790762.40188.qm@web35906.mail.mud.yahoo.com>
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

--------------enig566662176CBEC8D88F65E495
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

According to Javier on 2/10/2010 3:29 PM:
> select() call with specified timeout in argument 5 is not altered on retu=
rn when time is up.
>=20
> 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

For Linux compatibility, it would be nice to alter the argument.  But
POSIX is clear that the current cygwin behavior of leaving the argument
unchanged is also compliant.

--=20
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9 AT byu DOT net


--------------enig566662176CBEC8D88F65E495
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAktzcfMACgkQ84KuGfSFAYDJjQCgmy4aC1yf6l56X6oS22fRbbPK
q3gAoK+Nol3tDLbuWUpwzp3IDEpjkHqZ
=ZAAu
-----END PGP SIGNATURE-----

--------------enig566662176CBEC8D88F65E495--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019