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
5f73f449
Commit
5f73f449
authored
Oct 29, 2015
by
Serge Hallyn
Committed by
Stéphane Graber
Nov 06, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
don't close std* fd if opentty fails
We didn't do it before, and it makes testcases fail. Signed-off-by:
Serge Hallyn
<
serge.hallyn@ubuntu.com
>
parent
e1ff1a15
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
lxc_usernsexec.c
src/lxc/lxc_usernsexec.c
+0
-2
No files found.
src/lxc/lxc_usernsexec.c
View file @
5f73f449
...
...
@@ -83,7 +83,6 @@ static void opentty(const char * tty, int which) {
fd
=
open
(
tty
,
O_RDWR
|
O_NONBLOCK
);
if
(
fd
==
-
1
)
{
printf
(
"WARN: could not reopen tty: %s
\n
"
,
strerror
(
errno
));
close
(
which
);
return
;
}
...
...
@@ -91,7 +90,6 @@ static void opentty(const char * tty, int which) {
flags
&=
~
O_NONBLOCK
;
if
(
fcntl
(
fd
,
F_SETFL
,
flags
)
<
0
)
{
printf
(
"WARN: could not set fd flags: %s
\n
"
,
strerror
(
errno
));
close
(
which
);
return
;
}
...
...
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