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
9bc82f49
Commit
9bc82f49
authored
Sep 28, 2013
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpc: Send EMPTY message with success == fail in case of unsupported request
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
0327d551
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
cr-service.c
cr-service.c
+10
-5
No files found.
cr-service.c
View file @
9bc82f49
...
...
@@ -190,16 +190,21 @@ static int cr_service_work(void)
case
CRIU_REQ_TYPE__DUMP
:
return
dump_using_req
(
msg
->
dump
);
default:
default:
{
CriuResp
resp
=
CRIU_RESP__INIT
;
resp
.
type
=
CRIU_REQ_TYPE__EMPTY
;
resp
.
success
=
false
;
/* XXX -- add optional error code to CriuResp */
pr_perror
(
"Invalid request"
);
send_criu_msg
(
cr_service_client
->
sk_fd
,
&
resp
);
goto
err
;
}
}
err:
/*
* FIXME -- add generic error report
*/
close
(
cr_service_client
->
sk_fd
);
return
-
1
;
}
...
...
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