]> Savannah Git Hosting - gnulib.git/commit
mktime: improve thread-safety
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 5 Oct 2024 04:07:09 +0000 (21:07 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 5 Oct 2024 04:14:58 +0000 (21:14 -0700)
commit8e0c8d148117086894fe26576d9255ea7f047a6d
tree847670b1a9154051e9d66b5a28115f7386b6a4fd
parent64a179b28743a0c87f71fe15162cad6ab5d6ca9c
mktime: improve thread-safety

* lib/mktime.c (__mktime_internal) [!_LIBC]: Double the number of
probes.  Although this isn’t guaranteed to suffice, it should be
good enough for practical applications, and fixing the problem
in general would require access to the underlying tz state lock
which would be hard to do.
ChangeLog
lib/mktime.c