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
cf4b07a5
Commit
cf4b07a5
authored
Mar 18, 2016
by
Tycho Andersen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
c/r: log the exact command we exec
Signed-off-by:
Tycho Andersen
<
tycho.andersen@canonical.com
>
parent
72e7e168
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
criu.c
src/lxc/criu.c
+10
-1
No files found.
src/lxc/criu.c
View file @
cf4b07a5
...
@@ -126,7 +126,7 @@ static void exec_criu(struct criu_opts *opts)
...
@@ -126,7 +126,7 @@ static void exec_criu(struct criu_opts *opts)
int
netnr
=
0
;
int
netnr
=
0
;
struct
lxc_list
*
it
;
struct
lxc_list
*
it
;
char
buf
[
4096
],
tty_info
[
32
];
char
buf
[
4096
],
*
pos
,
tty_info
[
32
];
/* If we are currently in a cgroup /foo/bar, and the container is in a
/* If we are currently in a cgroup /foo/bar, and the container is in a
* cgroup /lxc/foo, lxcfs will give us an ENOENT if some task in the
* cgroup /lxc/foo, lxcfs will give us an ENOENT if some task in the
...
@@ -356,6 +356,15 @@ static void exec_criu(struct criu_opts *opts)
...
@@ -356,6 +356,15 @@ static void exec_criu(struct criu_opts *opts)
argv
[
argc
]
=
NULL
;
argv
[
argc
]
=
NULL
;
buf
[
0
]
=
0
;
pos
=
buf
;
for
(
i
=
0
;
argv
[
i
];
i
++
)
{
pos
=
strncat
(
buf
,
argv
[
i
],
buf
+
sizeof
(
buf
)
-
pos
);
pos
=
strncat
(
buf
,
" "
,
buf
+
sizeof
(
buf
)
-
pos
);
}
INFO
(
"execing: %s"
,
buf
);
#undef DECLARE_ARG
#undef DECLARE_ARG
execv
(
argv
[
0
],
argv
);
execv
(
argv
[
0
],
argv
);
err:
err:
...
...
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