]> git.proxmox.com Git - mirror_lxc.git/commit
put shared variables into thread-local storage
authorS.Çağlar Onur <caglar@10ur.org>
Fri, 7 Mar 2014 04:27:05 +0000 (23:27 -0500)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Fri, 7 Mar 2014 04:58:32 +0000 (22:58 -0600)
commitdc5406bbbd6d3a76c367082dcee7941d7cfb0e43
tree268fd8becefdab6874d21540e98b4e19d7a2493a
parente5ab821d6fc9a0d6393ebd0bbf385fdd364d6dce
put shared variables into thread-local storage

This doesn't solve the general design problem of the log.c (eg; some log lines
got lost or scattered into multiple files) but at least prevent multithreaded
code from crashing.

Before this change something like following;

sudo src/tests/lxc-test-concurrent -i 10 -j 20

was crashing nearly all the time due to 3afbcc4600a as we started to
set lxc.loglevel and lxc.logfile with that commit.

Signed-off-by: S.Çağlar Onur <caglar@10ur.org>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/log.c