mirror_lxc/src/lxc
S.Çağlar Onur dc5406bbbd 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 3afbcc4600 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>
2014-03-06 22:58:32 -06:00
..
legacy licensing: Add missing headers and FSF address 2013-09-03 14:33:03 -04:00
lsm apparmor: don't do on-exec profile changes 2014-02-22 18:33:29 -05:00
af_unix.c reindent src/lxc/af_unix.c 2014-02-13 16:47:39 -05:00
af_unix.h Use actual length of socket's name for abstract sockets (v3) 2013-10-25 16:15:23 -05:00
arguments.c Remove lxc-version, lxc-ps and lxc-netstat 2014-01-22 13:38:46 -05:00
arguments.h Remove lxc-version, lxc-ps and lxc-netstat 2014-01-22 13:38:46 -05:00
attach_options.h Allow use of public API from C++ 2013-12-25 17:15:55 +01:00
attach.c attach: Defined MS_REC and MS_SLAVE if not set 2014-02-25 15:22:26 -05:00
attach.h attach: try to use the container's seccomp policy 2014-02-17 13:52:21 -05:00
bdev.c Fix typo I introduced in the bdev change. 2014-03-03 11:31:03 -05:00
bdev.h add dir support 2014-02-22 18:33:59 -05:00
caps.c log: Drop trailing \n from log messages 2014-02-07 10:19:27 -05:00
caps.h licensing: Add missing headers and FSF address 2013-09-03 14:33:03 -04:00
cgfs.c fix attach when cgroups mounted after container start 2014-02-26 14:54:04 -05:00
cgmanager.c cgmanager: tell dbus to do locking 2014-03-06 10:23:17 -06:00
cgroup.c cgmanager updates 2014-03-04 17:34:29 -05:00
cgroup.h cgmanager updates 2014-03-04 17:34:29 -05:00
commands.c split cgroup handling into discrete backends 2014-02-06 10:46:19 -06:00
commands.h add c->may_control 2013-09-30 13:21:52 -05:00
conf.c chown_mapped_rootid: don't double-map root id 2014-03-04 11:11:13 -05:00
conf.h always ensure a /proc while setting up container 2014-02-15 00:26:36 -06:00
confile.c confile: Don't crash on invalid id_map 2014-02-25 17:09:49 -05:00
confile.h Mark functions as static and arguments/arrays as const where possible 2014-01-02 09:54:03 -06:00
console.c Revert "fix console stdin,stdout,stderr fds" 2014-03-06 18:01:08 -06:00
console.h Revert "fix console stdin,stdout,stderr fds" 2014-03-06 18:01:08 -06:00
error.c adjust include statements (v2) 2014-01-01 14:04:51 -06:00
error.h licensing: Add missing headers and FSF address 2013-09-03 14:33:03 -04:00
execute.c licensing: Add missing headers and FSF address 2013-09-03 14:33:03 -04:00
freezer.c split cgroup handling into discrete backends 2014-02-06 10:46:19 -06:00
genl.c licensing: Add missing headers and FSF address 2013-09-03 14:33:03 -04:00
genl.h licensing: Add missing headers and FSF address 2013-09-03 14:33:03 -04:00
list.h licensing: Add missing headers and FSF address 2013-09-03 14:33:03 -04:00
log.c put shared variables into thread-local storage 2014-03-06 22:58:32 -06:00
log.h logging: Add lxc_log_options_no_override function 2014-02-04 18:01:59 -05:00
lxc_attach.c Add missing include 2014-02-18 12:44:54 -05:00
lxc_autostart.c lxc_autostart: Update following shutdown() API change 2014-02-07 10:51:45 -05:00
lxc_cgroup.c log: Set log_define properly 2014-02-05 17:16:34 -06:00
lxc_clone.c bdev: Add aufs support 2014-02-12 16:43:55 -05:00
lxc_config.c One more rename of the system options 2014-01-10 23:25:19 -05:00
lxc_console.c Revert "fix console stdin,stdout,stderr fds" 2014-03-06 18:01:08 -06:00
lxc_create.c add dir support 2014-02-22 18:33:59 -05:00
lxc_destroy.c log: Set log_define properly 2014-02-05 17:16:34 -06:00
lxc_execute.c log: Set log_define properly 2014-02-05 17:16:34 -06:00
lxc_freeze.c log: Set log_define properly 2014-02-05 17:16:34 -06:00
lxc_info.c log: Set log_define properly 2014-02-05 17:16:34 -06:00
lxc_init.c logging: Add lxc_log_options_no_override function 2014-02-04 18:01:59 -05:00
lxc_monitor.c log: Set log_define properly 2014-02-05 17:16:34 -06:00
lxc_monitord.c logging: Add lxc_log_options_no_override function 2014-02-04 18:01:59 -05:00
lxc_snapshot.c log: Drop trailing \n from log messages 2014-02-07 10:19:27 -05:00
lxc_start.c Revert "fix console stdin,stdout,stderr fds" 2014-03-06 18:01:08 -06:00
lxc_stop.c log: Set log_define properly 2014-02-05 17:16:34 -06:00
lxc_unfreeze.c log: Set log_define properly 2014-02-05 17:16:34 -06:00
lxc_unshare.c Include config.h early for _GNU_SOURCE with musl libc 2014-01-29 16:15:52 +00:00
lxc_user_nic.c network: set mtu of unpriv veth to the bridge's mtu 2014-02-18 23:16:27 -06:00
lxc_usernsexec.c Fix unprivileged containers started by root 2014-02-27 17:47:31 -05:00
lxc_wait.c log: Set log_define properly 2014-02-05 17:16:34 -06:00
lxc-checkconfig.in lxc-checkconfig: Fix parsing on vserver kernels 2014-02-18 17:09:14 -05:00
lxc-device python3: Drop API warning and fix pep8/pyflakes3 2014-02-13 14:14:03 -05:00
lxc-ls.in lxc-ls: Fix support of --nesting for unpriv 2014-03-04 17:33:28 -05:00
lxc-start-ephemeral.in lxc-start-ephemeral: Set tmpfs mode to 0755 2014-02-24 09:51:27 -05:00
lxc-top lxc-lua: LFS library is not being used 2013-11-18 10:44:33 -05:00
lxc.functions.in One more rename of the system options 2014-01-10 23:25:19 -05:00
lxc.h split cgroup handling into discrete backends 2014-02-06 10:46:19 -06:00
lxccontainer.c snapshot: fix overlayfs restore 2014-03-04 17:40:53 -05:00
lxccontainer.h bdev: Add aufs support 2014-02-12 16:43:55 -05:00
lxclock.c rundir: Fix memory leaks 2014-02-19 00:40:21 -05:00
lxclock.h check pthread_atfork and thread-local storage 2014-01-06 09:46:32 -05:00
lxcseccomp.h licensing: Add missing headers and FSF address 2013-09-03 14:33:03 -04:00
lxcutmp.c coverity: Check fread length 2014-02-14 19:13:36 -05:00
lxcutmp.h licensing: Add missing headers and FSF address 2013-09-03 14:33:03 -04:00
mainloop.c Remove process_lock() except where actually needed 2013-12-24 09:10:41 -06:00
mainloop.h add epoll events to mainloop callback handlers 2013-12-06 16:03:20 -05:00
Makefile.am Add --with-runtime-path to configure 2014-02-11 18:57:57 -05:00
monitor.c rundir: Fix memory leaks 2014-02-19 00:40:21 -05:00
monitor.h Include limits.h for NAME_MAX 2014-01-29 16:15:52 +00:00
namespace.c Mark functions as static and arguments/arrays as const where possible 2014-01-02 09:54:03 -06:00
namespace.h licensing: Add missing headers and FSF address 2013-09-03 14:33:03 -04:00
network.c network: set mtu of unpriv veth to the bridge's mtu 2014-02-18 23:16:27 -06:00
network.h network: set mtu of unpriv veth to the bridge's mtu 2014-02-18 23:16:27 -06:00
nl.c Remove process_lock() except where actually needed 2013-12-24 09:10:41 -06:00
nl.h licensing: Add missing headers and FSF address 2013-09-03 14:33:03 -04:00
parse.c Mark functions as static and arguments/arrays as const where possible 2014-01-02 09:54:03 -06:00
parse.h Mark functions as static and arguments/arrays as const where possible 2014-01-02 09:54:03 -06:00
rtnl.c licensing: Add missing headers and FSF address 2013-09-03 14:33:03 -04:00
rtnl.h licensing: Add missing headers and FSF address 2013-09-03 14:33:03 -04:00
seccomp.c seccomp: don't support v2 if seccomp_syscall_resolve_name_arch is not avilable 2014-02-12 18:31:52 -05:00
start.c Revert "fix console stdin,stdout,stderr fds" 2014-03-06 18:01:08 -06:00
start.h Add missing include of signal.h 2014-02-06 13:57:31 -05:00
state.c split cgroup handling into discrete backends 2014-02-06 10:46:19 -06:00
state.h licensing: Add missing headers and FSF address 2013-09-03 14:33:03 -04:00
sync.c Remove process_lock() except where actually needed 2013-12-24 09:10:41 -06:00
sync.h licensing: Add missing headers and FSF address 2013-09-03 14:33:03 -04:00
utils.c simpler shared rootfs handling 2014-03-03 11:04:29 -05:00
utils.h simpler shared rootfs handling 2014-03-03 11:04:29 -05:00
version.h.in Reduce public API (V2) 2013-12-02 18:17:41 -05:00