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
46047d1f
Unverified
Commit
46047d1f
authored
Nov 20, 2017
by
Jonathan Calmels
Committed by
Christian Brauner
Dec 15, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lxc_init: set the control terminal in the child session
Signed-off-by:
Jonathan Calmels
<
jcalmels@nvidia.com
>
parent
e2bce0ec
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
lxc_init.c
src/lxc/tools/lxc_init.c
+4
-1
No files found.
src/lxc/tools/lxc_init.c
View file @
46047d1f
...
@@ -193,7 +193,10 @@ int main(int argc, char *argv[])
...
@@ -193,7 +193,10 @@ int main(int argc, char *argv[])
if
(
sid
<
0
)
if
(
sid
<
0
)
DEBUG
(
"Failed to make child session leader"
);
DEBUG
(
"Failed to make child session leader"
);
NOTICE
(
"About to exec '%s'"
,
aargv
[
0
]);
if
(
ioctl
(
STDIN_FILENO
,
TIOCSCTTY
,
0
)
<
0
)
DEBUG
(
"Failed to set controlling terminal"
);
NOTICE
(
"Exec'ing
\"
%s
\"
"
,
aargv
[
0
]);
ret
=
execvp
(
aargv
[
0
],
aargv
);
ret
=
execvp
(
aargv
[
0
],
aargv
);
ERROR
(
"Failed to exec: '%s' : %s"
,
aargv
[
0
],
strerror
(
errno
));
ERROR
(
"Failed to exec: '%s' : %s"
,
aargv
[
0
],
strerror
(
errno
));
...
...
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