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
4d44e274
Commit
4d44e274
authored
Apr 14, 2013
by
Serge Hallyn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix coverity-found errors.
Signed-off-by:
Serge Hallyn
<
serge.hallyn@ubuntu.com
>
parent
00b6be44
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
conf.c
src/lxc/conf.c
+4
-2
namespace.c
src/lxc/namespace.c
+1
-1
No files found.
src/lxc/conf.c
View file @
4d44e274
...
...
@@ -700,7 +700,8 @@ static int setup_tty(const struct lxc_rootfs *rootfs,
SYSERROR
(
"error creating %s
\n
"
,
lxcpath
);
return
-
1
;
}
close
(
ret
);
if
(
ret
>=
0
)
close
(
ret
);
ret
=
unlink
(
path
);
if
(
ret
&&
errno
!=
ENOENT
)
{
SYSERROR
(
"error unlinking %s
\n
"
,
path
);
...
...
@@ -1314,7 +1315,8 @@ static int setup_ttydir_console(const struct lxc_rootfs *rootfs,
SYSERROR
(
"error %d creating %s
\n
"
,
errno
,
lxcpath
);
return
-
1
;
}
close
(
ret
);
if
(
ret
>=
0
)
close
(
ret
);
if
(
console
->
peer
==
-
1
)
{
INFO
(
"no console output required"
);
...
...
src/lxc/namespace.c
View file @
4d44e274
...
...
@@ -53,7 +53,7 @@ pid_t lxc_clone(int (*fn)(void *), void *arg, int flags)
.
arg
=
arg
,
};
long
stack_size
=
sysconf
(
_SC_PAGESIZE
);
size_t
stack_size
=
sysconf
(
_SC_PAGESIZE
);
void
*
stack
=
alloca
(
stack_size
);
pid_t
ret
;
...
...
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