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>
Wed, 6 Dec 2017 15:51:27 +0000 (10:51 -0500)
commitbcd785aaaaf0d6d5c97b6231d26d83c12714fde0
tree777ea2edf35e01809481ed09520e583edc8c9f78
parent8f2be4853d3b76c38585ecf74ea8983d6451bb2d
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.024091 seconds and 4 git commands to generate.