[PATCH] debuginfod: Use gmtime_r instead of gmtime to avoid data race

Mark Wielaard mark@klomp.org
Fri Dec 3 12:32:45 GMT 2021


Hi,

On Wed, 2021-12-01 at 08:26 -0500, Frank Ch. Eigler wrote:
> Since we are multi-threaded using gmtime might cause a data race
> > because gmtime reuses a global struct to write data into. Make
> > sure that each thread uses their own struct tm and use gmtime_r
> > instead.
> 
> (thanks, lgtm)

Thanks, pushed.

Cheers,

Mark


More information about the Elfutils-devel mailing list