Opened 6 years ago

Closed 6 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: Test Case:
Blocked By: Blocking:
Related Tickets: Differential Revisions:

Description

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 6 years ago.
Autodetect failing setitimer

Download all attachments as: .zip

Change History (4)

Changed 6 years ago by sthibaul

Autodetect failing setitimer

comment:1 Changed 6 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 6 years ago by simonmar

  • Owner set to igloo

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

comment:3 Changed 6 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 <[email protected]>
  * 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.