Skip to content

Commit

Permalink
oops, fix recent NANOSLEEP change
Browse files Browse the repository at this point in the history
  If the sleep gets interrupted multiple times on Darwin:
  update SECS and NSECS each round.
  • Loading branch information
sb-studio committed Aug 23, 2011
1 parent d648683 commit 9ae34bc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/code/unix.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -976,6 +976,9 @@ corresponds to NAME, or NIL if there is none."
(rem-nsec (slot rem 'tv-nsec)))
(when (or (> secs rem-sec)
(and (= secs rem-sec) (>= nsecs rem-nsec)))
;; Update for next round.
(setf sec rem-sec
nsec rem-nsec)
t)))
do (setf (slot req 'tv-sec) (slot rem 'tv-sec)
(slot req 'tv-nsec) (slot rem 'tv-nsec)))))
Expand Down

0 comments on commit 9ae34bc

Please sign in to comment.