Commit 8eaf0142 authored by Ruslan Kuprieiev's avatar Ruslan Kuprieiev Committed by Pavel Emelyanov

cr-service: set cr_errno to EBADRQC if set_opts_from_req fails

Signed-off-by: 's avatarRuslan Kuprieiev <kupruser@gmail.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent e76749b7
......@@ -30,6 +30,8 @@
#include "setproctitle.h"
#include "cr-errno.h"
unsigned int service_sk_ino = -1;
static int recv_criu_msg(int socket_fd, CriuReq **msg)
......@@ -341,6 +343,7 @@ static int setup_opts_from_req(int sk, CriuOpts *req)
return 0;
err:
set_cr_errno(EBADRQC);
return -1;
}
......
......@@ -8,6 +8,7 @@ int get_cr_errno(void);
* List of symbolic error names:
* ESRCH - no process can be found corresponding to that specified by pid
* EEXIST - process with such pid already exists
* EBADRQC - bad options
*/
#endif /* __CR_ERRNO_H__ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment