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
e3bc3b86
Unverified
Commit
e3bc3b86
authored
Mar 12, 2018
by
Serge Hallyn
Committed by
GitHub
Mar 12, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2211 from tych0/usernsexec-init-log
usernsexec: init log fd
parents
f392f4ed
2d22b22d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
lxc_usernsexec.c
src/lxc/cmd/lxc_usernsexec.c
+4
-0
No files found.
src/lxc/cmd/lxc_usernsexec.c
View file @
e3bc3b86
...
@@ -53,6 +53,8 @@
...
@@ -53,6 +53,8 @@
#define MS_SLAVE (1 << 19)
#define MS_SLAVE (1 << 19)
#endif
#endif
extern
int
lxc_log_fd
;
int
unshare
(
int
flags
);
int
unshare
(
int
flags
);
static
void
usage
(
const
char
*
name
)
static
void
usage
(
const
char
*
name
)
...
@@ -274,6 +276,8 @@ int main(int argc, char *argv[])
...
@@ -274,6 +276,8 @@ int main(int argc, char *argv[])
int
pipe1
[
2
],
/* child tells parent it has unshared */
int
pipe1
[
2
],
/* child tells parent it has unshared */
pipe2
[
2
];
/* parent tells child it is mapped and may proceed */
pipe2
[
2
];
/* parent tells child it is mapped and may proceed */
lxc_log_fd
=
STDERR_FILENO
;
memset
(
ttyname0
,
'\0'
,
sizeof
(
ttyname0
));
memset
(
ttyname0
,
'\0'
,
sizeof
(
ttyname0
));
memset
(
ttyname1
,
'\0'
,
sizeof
(
ttyname1
));
memset
(
ttyname1
,
'\0'
,
sizeof
(
ttyname1
));
memset
(
ttyname2
,
'\0'
,
sizeof
(
ttyname2
));
memset
(
ttyname2
,
'\0'
,
sizeof
(
ttyname2
));
...
...
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