This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Perl_init_tm: Use mutex to avoid race.
authorKarl Williamson <khw@cpan.org>
Mon, 16 Mar 2020 04:17:32 +0000 (22:17 -0600)
committerKarl Williamson <khw@cpan.org>
Thu, 19 Mar 2020 00:12:39 +0000 (18:12 -0600)
commitd848c629501c573e92befef804a2ebd1d7bd3def
tree6ce7868add5a24462355a750ad59327fc07d2191
parent133a66aff08799249b0b2cd73d7236402fa94870
Perl_init_tm: Use mutex to avoid race.

This locks around localtime (and localtime_r which this call may be
translated into) which are sensitive to locale and environment changes
in their execution.
util.c