Ticket #2883 (closed bug: fixed)

Opened 4 years ago

Last modified 4 years ago

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:

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

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

Change History

Changed 4 years ago by sthibaul

Autodetect failing setitimer

Changed 4 years ago by igloo

  • priority changed from normal to high
  • difficulty set to Unknown
  • milestone set to 6.10.2

Thanks for the patch! We'll take a look

Changed 4 years ago by simonmar

  • owner set to igloo

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

Changed 4 years ago by igloo

  • status changed from new to closed
  • resolution set to fixed

Applied to HEAD and 6.10 branch:

Sun Feb  8 11:14:31 PST 2009  Ian Lynagh <igloo@earth.li>
  * 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.