]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Revert "make the log fd thread safe" lxc_0_6_2
authorDaniel Lezcano <dlezcano@fr.ibm.com>
Sun, 26 Apr 2009 09:49:53 +0000 (11:49 +0200)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Sun, 26 Apr 2009 09:49:53 +0000 (11:49 +0200)
This reverts commit 2c9bd0073f29573181dc16a840c674dacc8a33fd.

Pointless and useless right now and certainly wrong as several
threads in the library may want to log to the same, to be defined
later.

src/lxc/log.c

index 452b9730d06ca34127d7f379cd886bd187f87489..496805cb15925fb36eb415194429607bd38d4281 100644 (file)
 
 #include <lxc/log.h>
 
-static __thread int lxc_log_fd = 2;
-static __thread char log_prefix[LXC_LOG_PREFIX_SIZE] = "lxc";
+#define LXC_LOG_PREFIX_SIZE    32
+#define LXC_LOG_BUFFER_SIZE    512
+
+int lxc_log_fd = 2;
+static char log_prefix[LXC_LOG_PREFIX_SIZE] = "lxc";
 
 lxc_log_define(lxc_log, lxc);