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
6ade0522
Commit
6ade0522
authored
Nov 26, 2016
by
Stéphane Graber
Committed by
GitHub
Nov 26, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1324 from brauner/2016-11-26/more_logging_for_monitor
monitor: add more logging
parents
d44a6abd
aec1ea62
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
monitor.c
src/lxc/monitor.c
+7
-2
No files found.
src/lxc/monitor.c
View file @
6ade0522
...
...
@@ -349,18 +349,23 @@ int lxc_monitord_spawn(const char *lxcpath)
}
lxc_check_inherited
(
NULL
,
true
,
pipefd
[
1
]);
if
(
null_stdfds
()
<
0
)
if
(
null_stdfds
()
<
0
)
{
SYSERROR
(
"Failed to dup2() standard file descriptors to /dev/null."
);
exit
(
EXIT_FAILURE
);
}
close
(
pipefd
[
0
]);
ret
=
snprintf
(
pipefd_str
,
__INT_LEN
,
"%d"
,
pipefd
[
1
]);
if
(
ret
<
0
||
ret
>=
__INT_LEN
)
if
(
ret
<
0
||
ret
>=
__INT_LEN
)
{
ERROR
(
"Failed to create pid argument to pass to monitord."
);
exit
(
EXIT_FAILURE
);
}
DEBUG
(
"Using pipe file descriptor %d for monitord."
,
pipefd
[
1
]);
execvp
(
args
[
0
],
args
);
ERROR
(
"Failed to exec lxc-monitord."
);
exit
(
EXIT_FAILURE
);
}
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