]> sourceware.org Git - glibc.git/commit
mach: Fix bogus negative return
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 25 Aug 2024 01:35:29 +0000 (03:35 +0200)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 25 Aug 2024 01:35:29 +0000 (03:35 +0200)
commitf071795d80255755c4f3d2bdc6c55e67753b52b9
tree67a303b570cfd6336d5e7c8e9ce00e876ca6662a
parent82b5340ebdb8f00589d548e6e2dc8c998f07d0c5
mach: Fix bogus negative return

One can be very unlucky to call time_now first just before a second switch,
and mach_msg sleep just a bit more enough for the second time_now call to
count one second too many (or even more if scheduling is really unlucky).

So we have to protect against returning a bogus negative value in such case.
sysdeps/mach/sleep.c
This page took 0.041569 seconds and 5 git commands to generate.