Opened 9 years ago

Closed 9 years ago

#2883 closed bug (fixed)

setitimer(ITIMER_VIRTUAL) is not always available

Reported by: sthibaul Owned by: igloo
Priority: high Milestone: 6.10.2
Component: Compiler Version: 6.8.2
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


On some limited systems, setitimer(ITIMER_VIRTUAL) returns ENOSYS because the kernel does not provide a way to schedule timers based on virtual time. In such a case, rts/posix/Itimer.c should use ITIMER_REAL.

Attachments (1)

patch-ghc6 (4.0 KB) - added by sthibaul 9 years ago.
Autodetect failing setitimer

Download all attachments as: .zip

Change History (4)

Changed 9 years ago by sthibaul

Attachment: patch-ghc6 added

Autodetect failing setitimer

comment:1 Changed 9 years ago by igloo

difficulty: Unknown
Milestone: 6.10.2
Priority: normalhigh

Thanks for the patch! We'll take a look

comment:2 Changed 9 years ago by simonmar

Owner: set to igloo

Patch looks ok to me - Ian, could you apply please?

comment:3 Changed 9 years ago by igloo

Resolution: fixed
Status: newclosed

Applied to HEAD and 6.10 branch:

Sun Feb  8 11:14:31 PST 2009  Ian Lynagh <>
  * Handle the case where setitimer(ITIMER_VIRTUAL) is not always available
  Patch from sthibaul. Fixes trac #2883.
Note: See TracTickets for help on using tickets.