Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
criu
Project
Project
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
zhul
criu
Commits
fd5bcbe7
Commit
fd5bcbe7
authored
Mar 26, 2013
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check: More verbose messages when sock diag infratructure is missing.
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
f52d53c5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
cr-check.c
cr-check.c
+5
-2
sockets.c
sockets.c
+1
-1
No files found.
cr-check.c
View file @
fd5bcbe7
...
...
@@ -88,11 +88,14 @@ static int check_sock_diag(void)
{
int
ret
;
ret
=
collect_sockets
(
getpid
()
);
ret
=
collect_sockets
(
0
);
if
(
!
ret
)
return
0
;
pr_msg
(
"sock diag infrastructure is incomplete.
\n
"
);
pr_msg
(
"The sock diag infrastructure is incomplete.
\n
"
);
pr_msg
(
"Make sure you have:
\n
"
);
pr_msg
(
" 1. *_DIAG kernel config options turned on;
\n
"
);
pr_msg
(
" 2. *_diag.ko modules loaded (if compiled as modules).
\n
"
);
return
-
1
;
}
...
...
sockets.c
View file @
fd5bcbe7
...
...
@@ -530,7 +530,7 @@ out:
if
(
rst
>=
0
)
{
if
(
restore_ns
(
rst
,
&
net_ns_desc
)
<
0
)
err
=
-
1
;
}
else
{
}
else
if
(
pid
!=
0
)
{
/*
* If netns isn't dumped, crtools will fail only
* if an unsupported socket will be really dumped.
...
...
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