From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 117637 invoked by alias); 24 Feb 2019 19:01:29 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 117592 invoked by uid 89); 24 Feb 2019 19:01:29 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-100.9 required=5.0 tests=BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy= X-HELO: mout.kundenserver.de Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (212.227.126.130) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 24 Feb 2019 19:01:27 +0000 Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id 1Mbj3e-1hZmt23nBu-00dBcb; Sun, 24 Feb 2019 20:01:22 +0100 Received: by calimero.vinschen.de (Postfix, from userid 500) id 7B96CA8093B; Sun, 24 Feb 2019 20:01:22 +0100 (CET) Date: Sun, 24 Feb 2019 19:09:00 -0000 From: Corinna Vinschen To: Mike Gran Cc: cygwin@cygwin.com Subject: Re: return value of getitimer after an alarm Message-ID: <20190224190122.GA10574@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: Mike Gran , cygwin@cygwin.com References: <20190224065837.GA14582@joshua.dnsalias.com> <20190224091858.GD4133@calimero.vinschen.de> <20190224165726.GA8095@joshua.dnsalias.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="h31gzZEtNLTqOjlF" Content-Disposition: inline In-Reply-To: <20190224165726.GA8095@joshua.dnsalias.com> User-Agent: Mutt/1.11.3 (2019-02-01) X-SW-Source: 2019-02/txt/msg00403.txt.bz2 --h31gzZEtNLTqOjlF Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1105 On Feb 24 08:57, Mike Gran via cygwin wrote: > On Sun, Feb 24, 2019 at 10:18:58AM +0100, Corinna Vinschen wrote: > > On Feb 23 22:58, Mike Gran via cygwin wrote: > > > Hi- > > >=20 > > > There is an unusual behaviour with setitimer/getitimer and I'm not > > > sure if it is a bug or not. > > >=20 > > > Basically, if I call setitimer to set an SIGALRM, and then call > > > getitimer *after* the alarm goes off, I rather expect the time I > > > receive from getitimer should be {tv_sec =3D 0, tv_usec =3D 0}, but, = in > > > fact, it_value is the negative of the unix timestamp. > > >=20 > > > Attached is a test case. > >=20 > > Thanks for the testcase. The reason for the problem is this: > > I optimized a condition in Cygwin's POSIX timers "gettime" method. > > I optimized it so effecively that it was practically invisible :} > >=20 > > I pushed a patch and uploaded new developer snapshots to > > https://cygwin.com/snapshots/ > >=20 > > Please test. >=20 > Works for me. Thanks for your help. Thanks for testing! Expect a 3.0.2 release soon. Corinna --=20 Corinna Vinschen Cygwin Maintainer --h31gzZEtNLTqOjlF Content-Type: application/pgp-signature; name="signature.asc" Content-length: 833 -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlxy6gIACgkQ9TYGna5E T6ApMQ/+PK65SoFV8JIBISnjBf4fNrFoioesTZs3ZQkyI+tM0s4/+An10QjRCJgY CpSviHtz/1jtaCm6nbNvM84RBL9YUEWfJXSej4dRzeN7VaHI8RabQ1ey1SpvavZA Nj5m4Fbc75ICgCGqHE7cJTkm/3aOSHNUS7qM5vT7i2Tk97rcqmE++QVl8k6cpQCU JB8agZqP1c6POA9+fcrL7gnSssorw8ICFv5vwjFDuTm1jnnKKPIj1tD8IDaYPuPI FJHiaiUlErtaPYwPYH+oYZqt79fPD/y3pX8l4JL48quV1IZC1IZow5wPtDjm7acw 13O0zGYJw9zLDhBTAmATDZL5XqnsntygRnOuNggeLvQVbFxcSzoK2qCnQLUiDcPl eOJ2vv0i6z8rvymLE+5HwGnImpZ7HhdIpHRB+pCQSbxKb9GU6yqx/QR6fsI4CGHn nGBFBloHy3SH4VEc8p0V7VNry+sjuZY985i++CT0y/B3o/b4NaVoyT2yAMsKWgif 8xd5hnYkGy11wP5bk6VTmk8WpWcRwWfD/sIQDVEWU/V81An8geO113tsBoU2TmjH lbHijuDL6he4DLEwYtni3oFoYI7fbOUlDbbxydcTD+oOIo++fOHBHp4ZfhHsh/eV uuYLvL4Dedckx2hIITrtmBqGHOgIDUDf1eA2CCpt7t1pGRC5ufM= =IkP+ -----END PGP SIGNATURE----- --h31gzZEtNLTqOjlF--