Skip to content
Snippets Groups Projects

Make nanosleep and sleep handle interrupts correctly, plus fix alarm

Merged Ron Williams requested to merge rw_van/relibc:sleep-intr into master

There are bugs in alarm, nanosleep and sleep that make them behave differently from Linux native. The following fixes are provided:

  • alarm was failing to cause SIGALRM because the same pointer was being used for both write and read of the time value
  • sleep was not returning the remaining time after EINTR
  • nanosleep was not returning remaining time after EINTR (Redox implementation, not tested yet)

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading