Fix: Replace bt_timegm with a thread-safe implementation
authorMichael Jeanson <mjeanson@efficios.com>
Mon, 13 Nov 2017 20:17:47 +0000 (15:17 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 13 Nov 2017 23:31:14 +0000 (18:31 -0500)
commit95abf2a08ee572d2a88ab613698c554814b69e6a
treebd0dd460f708cdcee4f4f3b0a95b90e99f1af87c
parente07ab7c8ee4963a82e1caf9b9940785d0344662a
Fix: Replace bt_timegm with a thread-safe implementation

The current compat wrapper for timegm is not thread-safe, it modifies
the process wide time settings with tzset. This was not a problem in bt1
as it was only used in the cli binary but it is now used in the trimmer
plugin which is used by the library.

Replace the wrapper with a basic implementation and add more tests.

Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
include/babeltrace/compat/utc-internal.h
tests/cli/test_trimmer.in
This page took 0.024417 seconds and 4 git commands to generate.