http://defect.opensolaris.org/bz/show_bug.cgi?id=11784



--- Comment #3 from Anurag S. Maskey <Anurag.Maskey at Sun.COM> 2009-10-07 
14:15:45 UTC ---
(In reply to comment #2)
> If (e->event_time - now) == 0, we cancel the alarm. It might make sense to
> ensure a minimal alarm time of 1sec, i.e.
> 
> nextalarm = e->event_time - now;
> if (nextalarm > 0)
>     (void) alarm(nextalarm)
> else
>     (void) alarm(1);

I was thinking that if nextalarm is 0, we don't set the alarm at all.  The
alarm for that event has already been registered, so it should go off in the
same second.

-- 
Configure bugmail: http://defect.opensolaris.org/bz/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Reply via email to