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
9357140c
Commit
9357140c
authored
Nov 28, 2017
by
AustinReichert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools/lxc_execute: removed internal logging
Signed-off-by:
AustinReichert
<
austinskyreichert@utexas.edu
>
parent
8a0a156e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
lxc_execute.c
src/lxc/tools/lxc_execute.c
+5
-7
No files found.
src/lxc/tools/lxc_execute.c
View file @
9357140c
...
...
@@ -42,8 +42,6 @@
#include "start.h"
#include "utils.h"
lxc_log_define
(
lxc_execute_ui
,
lxc
);
static
struct
lxc_list
defines
;
static
int
my_parser
(
struct
lxc_arguments
*
args
,
int
c
,
char
*
arg
)
...
...
@@ -146,20 +144,20 @@ int main(int argc, char *argv[])
c
=
lxc_container_new
(
my_args
.
name
,
my_args
.
lxcpath
[
0
]);
if
(
!
c
)
{
ERROR
(
"Failed to create lxc_container
"
);
fprintf
(
stderr
,
"Failed to create lxc_container
\n
"
);
exit
(
EXIT_FAILURE
);
}
if
(
my_args
.
rcfile
)
{
c
->
clear_config
(
c
);
if
(
!
c
->
load_config
(
c
,
my_args
.
rcfile
))
{
ERROR
(
"Failed to load rcfile
"
);
fprintf
(
stderr
,
"Failed to load rcfile
\n
"
);
lxc_container_put
(
c
);
exit
(
EXIT_FAILURE
);
}
c
->
configfile
=
strdup
(
my_args
.
rcfile
);
if
(
!
c
->
configfile
)
{
ERROR
(
"Out of memory setting new config filename
"
);
fprintf
(
stderr
,
"Out of memory setting new config filename
\n
"
);
lxc_container_put
(
c
);
exit
(
EXIT_FAILURE
);
}
...
...
@@ -167,7 +165,7 @@ int main(int argc, char *argv[])
if
(
my_args
.
argc
==
0
)
{
if
(
!
set_argv
(
c
->
lxc_conf
,
&
my_args
))
{
ERROR
(
"missing command to execute!
"
);
fprintf
(
stderr
,
"missing command to execute!
\n
"
);
lxc_container_put
(
c
);
exit
(
EXIT_FAILURE
);
}
...
...
@@ -190,7 +188,7 @@ int main(int argc, char *argv[])
ret
=
c
->
error_num
;
lxc_container_put
(
c
);
if
(
!
bret
)
{
ERROR
(
"Failed run an application inside container
"
);
fprintf
(
stderr
,
"Failed run an application inside container
\n
"
);
exit
(
EXIT_FAILURE
);
}
exit
(
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