diff options
author | 2022-12-30 00:40:18 +0100 | |
---|---|---|
committer | 2022-12-30 00:41:24 +0100 | |
commit | 289b098c9e21e2805e3835f9b5780235ab14a290 (patch) | |
tree | de5836a64ca9067d4c6a70da94e715d27705f003 /sysdeps/unix/sysv/linux/sparc/kernel_termios.h | |
parent | Avoid use of atoi in malloc (diff) | |
download | glibc-289b098c9e21e2805e3835f9b5780235ab14a290.tar.xz glibc-289b098c9e21e2805e3835f9b5780235ab14a290.zip |
htl: Fix sem_wait race between read and gsync_wait
If the value changes between sem_wait's read and the gsync_wait call,
the kernel will return KERN_INVALID_ARGUMENT, which we have to interpret
as the value having already changed.
This fixes applications (e.g. libgo) seeing sem_wait erroneously return
KERN_INVALID_ARGUMENT.
Diffstat (limited to 'sysdeps/unix/sysv/linux/sparc/kernel_termios.h')
0 files changed, 0 insertions, 0 deletions