[lxc-devel] [lxc/lxc] dc5406: put shared variables into thread-local storage
GitHub
noreply at github.com
Fri Mar 7 04:58:40 UTC 2014
Branch: refs/heads/master
Home: https://github.com/lxc/lxc
Commit: dc5406bbbd6d3a76c367082dcee7941d7cfb0e43
https://github.com/lxc/lxc/commit/dc5406bbbd6d3a76c367082dcee7941d7cfb0e43
Author: S.Çağlar Onur <caglar at 10ur.org>
Date: 2014-03-06 (Thu, 06 Mar 2014)
Changed paths:
M src/lxc/log.c
Log Message:
-----------
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 at 10ur.org>
Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>
More information about the lxc-devel
mailing list