]> Savannah Git Hosting - gnulib.git/commit
readutmp: Ensure multithread-safety.
authorBruno Haible <bruno@clisp.org>
Fri, 4 Aug 2023 12:50:04 +0000 (14:50 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 4 Aug 2023 12:50:04 +0000 (14:50 +0200)
commit525dc1d17d273ed6b38afa09b778fb5752366bfe
treedd89a46ef0af860c2d74c530bbfce4f7a6954431
parent49b4e91f228885cd8e7012d80150d197008d69e6
readutmp: Ensure multithread-safety.

* lib/readutmp.c (get_boot_time): Initialize 'cached' after 'boot_time',
not before. Also declare both as volatile.
ChangeLog
lib/readutmp.c