#2606 closed defect (fixed)

alarm() uses seconds watchdog and thus is affected by clock changes

Reported by: Sebastian Huber Owned by: Sebastian Huber
Priority: normal Milestone: 5.1
Component: posix Version: 4.10
Severity: normal Keywords:
Cc: Blocked By:
Blocking:

Description

alarm() uses _Watchdog_Insert_seconds() and thus is affected by clock changes, e.g. via _TOD_Set(). This is wrong. The POSIX documentation is not that clear since it talks only about "realtime seconds". However, the FreeBSD implementation uses the uptime. This is also in line with the RTEMS ualarm() and nanosleep().

Change History (6)

comment:1 Changed on 02/22/16 at 08:17:07 by Sebastian Huber <sebastian.huber@…>

In 452f6ba9d193e0937f94432459c74122ea345e74/rtems:

psxtests/psxalarm01: Add adjtime() test case

Update #2606.

comment:2 Changed on 02/22/16 at 13:08:54 by Sebastian Huber

Status: newaccepted

comment:3 Changed on 03/04/16 at 14:01:04 by Sebastian Huber

Resolution: fixed
Status: acceptedclosed

comment:4 Changed on 05/11/17 at 07:31:02 by Sebastian Huber

Milestone: 4.124.12.0

comment:5 Changed on 10/16/17 at 06:23:11 by Sebastian Huber

Component: unspecifiedposix

comment:6 Changed on 11/09/17 at 06:27:14 by Sebastian Huber

Milestone: 4.12.05.1

Milestone renamed

Note: See TracTickets for help on using tickets.