Opened 5 years ago

Closed 5 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: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:


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

Attachments (1)

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

Download all attachments as: .zip

Change History (4)

Changed 5 years ago by sthibaul

Autodetect failing setitimer

comment:1 Changed 5 years ago by igloo

  • Difficulty set to Unknown
  • Milestone set to 6.10.2
  • Priority changed from normal to high

Thanks for the patch! We'll take a look

comment:2 Changed 5 years ago by simonmar

  • Owner set to igloo

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

comment:3 Changed 5 years ago by igloo

  • Resolution set to fixed
  • Status changed from new to closed

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.