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
49192457
Unverified
Commit
49192457
authored
May 03, 2021
by
Stéphane Graber
Committed by
GitHub
May 03, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3820 from brauner/2021-05-03.lxc_monitord.log
lxc_monitord: remove monitord log
parents
86deb111
8ee2f36f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
19 deletions
+0
-19
lxc_monitord.c
src/lxc/cmd/lxc_monitord.c
+0
-19
No files found.
src/lxc/cmd/lxc_monitord.c
View file @
49192457
...
@@ -339,13 +339,11 @@ static void lxc_monitord_sig_handler(int sig)
...
@@ -339,13 +339,11 @@ static void lxc_monitord_sig_handler(int sig)
int
main
(
int
argc
,
char
*
argv
[])
int
main
(
int
argc
,
char
*
argv
[])
{
{
int
ret
,
pipefd
=
-
1
;
int
ret
,
pipefd
=
-
1
;
char
logpath
[
PATH_MAX
];
sigset_t
mask
;
sigset_t
mask
;
const
char
*
lxcpath
=
NULL
;
const
char
*
lxcpath
=
NULL
;
bool
mainloop_opened
=
false
;
bool
mainloop_opened
=
false
;
bool
monitord_created
=
false
;
bool
monitord_created
=
false
;
bool
persistent
=
false
;
bool
persistent
=
false
;
struct
lxc_log
log
;
if
(
argc
>
1
&&
!
strcmp
(
argv
[
1
],
"--daemon"
))
{
if
(
argc
>
1
&&
!
strcmp
(
argv
[
1
],
"--daemon"
))
{
persistent
=
true
;
persistent
=
true
;
...
@@ -381,23 +379,6 @@ int main(int argc, char *argv[])
...
@@ -381,23 +379,6 @@ int main(int argc, char *argv[])
exit
(
EXIT_FAILURE
);
exit
(
EXIT_FAILURE
);
}
}
ret
=
snprintf
(
logpath
,
sizeof
(
logpath
),
"%s/lxc-monitord.log"
,
(
strcmp
(
LXCPATH
,
lxcpath
)
?
lxcpath
:
LOGPATH
));
if
(
ret
<
0
||
ret
>=
sizeof
(
logpath
))
exit
(
EXIT_FAILURE
);
log
.
name
=
NULL
;
log
.
file
=
logpath
;
log
.
level
=
"DEBUG"
;
log
.
prefix
=
"lxc-monitord"
;
log
.
quiet
=
0
;
log
.
lxcpath
=
lxcpath
;
ret
=
lxc_log_init
(
&
log
);
if
(
ret
)
INFO
(
"Failed to open log file %s, log will be lost"
,
lxcpath
);
lxc_log_options_no_override
();
if
(
sigfillset
(
&
mask
)
||
if
(
sigfillset
(
&
mask
)
||
sigdelset
(
&
mask
,
SIGILL
)
||
sigdelset
(
&
mask
,
SIGILL
)
||
sigdelset
(
&
mask
,
SIGSEGV
)
||
sigdelset
(
&
mask
,
SIGSEGV
)
||
...
...
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