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

2021-12-03 Thread Mark Wielaard
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)

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

2021-12-01 Thread Mark Wielaard
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. Signed-off-by: Mark Wielaard --- debuginfod/ChangeLog | 5 + debuginfod/debuginfod.cx