diff options
author | 2024-08-25 03:35:29 +0200 | |
---|---|---|
committer | 2024-08-25 03:35:29 +0200 | |
commit | f071795d80255755c4f3d2bdc6c55e67753b52b9 (patch) | |
tree | 67a303b570cfd6336d5e7c8e9ce00e876ca6662a /sysdeps/unix/sysv/linux/readdir_r.c | |
parent | powerpc64: Optimize strcpy and stpcpy for Power9/10 (diff) | |
download | glibc-f071795d80255755c4f3d2bdc6c55e67753b52b9.tar.xz glibc-f071795d80255755c4f3d2bdc6c55e67753b52b9.zip |
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.
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions