Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
2c9bd007
Commit
2c9bd007
authored
Apr 21, 2009
by
Daniel Lezcano
Committed by
Daniel Lezcano
Apr 21, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make the log fd thread safe
Add the tls attribute for the global static variables in the logs. Signed-off-by:
Daniel Lezcano
<
dlezcano@fr.ibm.com
>
parent
dcb7355b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
log.c
src/lxc/log.c
+2
-3
No files found.
src/lxc/log.c
View file @
2c9bd007
...
@@ -16,9 +16,8 @@
...
@@ -16,9 +16,8 @@
#define LXC_LOG_PREFIX_SIZE 32
#define LXC_LOG_PREFIX_SIZE 32
#define LXC_LOG_BUFFER_SIZE 512
#define LXC_LOG_BUFFER_SIZE 512
int
lxc_log_fd
=
2
;
static
__thread
int
lxc_log_fd
=
2
;
static
__thread
char
log_prefix
[
LXC_LOG_PREFIX_SIZE
]
=
"lxc"
;
static
char
log_prefix
[
LXC_LOG_PREFIX_SIZE
]
=
"lxc"
;
lxc_log_define
(
lxc_log
,
lxc
);
lxc_log_define
(
lxc_log
,
lxc
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment