]> git.ipfire.org Git - thirdparty/lxc.git/commit
log: use thread-safe localtime_r() 1318/head
authorChristian Brauner <christian.brauner@ubuntu.com>
Fri, 25 Nov 2016 01:42:51 +0000 (02:42 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Fri, 25 Nov 2016 01:42:51 +0000 (02:42 +0100)
commitb4c424743aec447437a169837cfe3180a39f2331
tree413dbf568d59267e9883af7aa52abc08460dbb78
parent81f466d05f2a89cb4f122ef7f593ff3f279b165c
log: use thread-safe localtime_r()

This fixes a race in liblxc logging which can lead to deadlocks. The reproducer
for this issue before this is to simply compile with --enable-tests and then
run:

    lxc-test-concurrent -j 20 -m create,start,stop,destroy -D

which should deadlock.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/log.c