delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/02/24/14:03:05

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:cc:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=iAByEuGVfavzAW9FWQwZm5QolLufZm047YbT16GDld/vlID48MUgL
5YRpA+F/4l/s+9etlISP+5+wA9JZqpzKpHNFryKqaJCw2xgJWZXt+X5BOTX09w3E
Y4WDId3LCbCaReDiuV09kUGNMnY5c83o9+QUUJmxxwIWxuNCNFm7m8=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:cc:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=uqvPXULKzYbd24wkbwCMM4jDH64=; b=Hs7P3KHYtc+uLTIPIagQcs2Cd7fC
pI0x5x0PgjKM4nlh3anLiSh6gYeQ7aYxIdvBhhCvDADUJoOoRvBLBTuoRUln/R0r
uDF7P9PyJFsWuHgqfgiDe/pU5Qhcmy9h/KMW3ZTuq2+aGsUMNnSfROLczJEluAhj
frNkirG2FeTk/8g=
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
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
Date: Sun, 24 Feb 2019 20:01:22 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: Mike Gran <spk121 AT yahoo DOT com>
Cc: cygwin AT cygwin DOT com
Subject: Re: return value of getitimer after an alarm
Message-ID: <20190224190122.GA10574@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: Mike Gran <spk121 AT yahoo DOT com>, cygwin AT cygwin DOT com
References: <20190224065837 DOT GA14582 AT joshua DOT dnsalias DOT com> <20190224091858 DOT GD4133 AT calimero DOT vinschen DOT de> <20190224165726 DOT GA8095 AT joshua DOT dnsalias DOT com>
MIME-Version: 1.0
In-Reply-To: <20190224165726.GA8095@joshua.dnsalias.com>
User-Agent: Mutt/1.11.3 (2019-02-01)

--h31gzZEtNLTqOjlF
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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"

-----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--

- Raw text -


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