From: "Mike Gran via cygwin" <cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: return value of getitimer after an alarm
Date: Sun, 24 Feb 2019 17:27:00 -0000 [thread overview]
Message-ID: <20190224165726.GA8095@joshua.dnsalias.com> (raw)
In-Reply-To: <20190224091858.GD4133@calimero.vinschen.de>
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.
-Mike Gran
--
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
next prev parent reply other threads:[~2019-02-24 16:57 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 [this message]
2019-02-24 19:09 ` Corinna Vinschen
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=20190224165726.GA8095@joshua.dnsalias.com \
--to=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).