public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: Mike Gran <spk121@yahoo.com>
Cc: cygwin@cygwin.com
Subject: Re: return value of getitimer after an alarm
Date: Sun, 24 Feb 2019 19:09:00 -0000	[thread overview]
Message-ID: <20190224190122.GA10574@calimero.vinschen.de> (raw)
In-Reply-To: <20190224165726.GA8095@joshua.dnsalias.com>

[-- Attachment #1: Type: text/plain, Size: 1117 bytes --]

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-
> > > 
> > > There is an unusual behaviour with setitimer/getitimer and I'm not
> > > sure if it is a bug or not.
> > > 
> > > 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 = 0, tv_usec = 0}, but, in
> > > fact, it_value is the negative of the unix timestamp.
> > > 
> > > Attached is a test case.
> > 
> > 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 :}
> > 
> > I pushed a patch and uploaded new developer snapshots to
> > https://cygwin.com/snapshots/
> > 
> > Please test.
> 
> Works for me.  Thanks for your help.

Thanks for testing!  Expect a 3.0.2 release soon.


Corinna

-- 
Corinna Vinschen
Cygwin Maintainer

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

      reply	other threads:[~2019-02-24 19:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-24  9:15 Mike Gran via cygwin
2019-02-24 10:14 ` Corinna Vinschen
2019-02-24 17:27   ` Mike Gran via cygwin
2019-02-24 19:09     ` Corinna Vinschen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190224190122.GA10574@calimero.vinschen.de \
    --to=corinna-cygwin@cygwin.com \
    --cc=cygwin@cygwin.com \
    --cc=spk121@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).