diff options
author | Florian Weimer <fweimer@redhat.com> | 2019-11-07 18:15:18 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2019-11-07 23:09:39 +0100 |
commit | be6b16d975683e6cca57852cd4cfe715b2a9d8b1 (patch) | |
tree | 040b7e45c4ee621e604da6e4072686b83a305505 /sysdeps/unix/sysv/linux/sendto.c | |
parent | 4f4bb489e0ddd2f24b2a5d352bb39f8dcdb38050 (diff) | |
download | glibc-be6b16d975683e6cca57852cd4cfe715b2a9d8b1.tar.gz glibc-be6b16d975683e6cca57852cd4cfe715b2a9d8b1.tar.xz glibc-be6b16d975683e6cca57852cd4cfe715b2a9d8b1.zip |
login: Acquire write lock early in pututline [BZ #24882]
It has been reported that due to lack of fairness in POSIX file locking, the current reader-to-writer lock upgrade can result in lack of forward progress. Acquiring the write lock directly hopefully avoids this issue if there are only writers. This also fixes bug 24882 due to the cache revalidation in __libc_pututline. Reviewed-by: Carlos O'Donell <carlos@redhat.com> Change-Id: I57e31ae30719e609a53505a0924dda101d46372e
Diffstat (limited to 'sysdeps/unix/sysv/linux/sendto.c')
0 files changed, 0 insertions, 0 deletions