Commit 4b9b7953 authored by Pavel Emelyanov's avatar Pavel Emelyanov

service: Make default (not set) service ino == -1

Zero is bad for checks, as peer-less sockets have such.
BUG introduced in cfe72ab7 :(
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent e8f48400
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
#include "log.h" #include "log.h"
#include "cr-service.h" #include "cr-service.h"
unsigned int service_sk_ino = 0; unsigned int service_sk_ino = -1;
static int recv_criu_msg(int socket_fd, CriuReq **msg) static int recv_criu_msg(int socket_fd, CriuReq **msg)
{ {
...@@ -94,7 +94,7 @@ static int setup_dump_from_req(int sk, CriuDumpReq *req) ...@@ -94,7 +94,7 @@ static int setup_dump_from_req(int sk, CriuDumpReq *req)
return -1; return -1;
} }
BUG_ON(st.st_ino == 0); BUG_ON(st.st_ino == -1);
service_sk_ino = st.st_ino; service_sk_ino = st.st_ino;
/* going to dir, where to place images*/ /* going to dir, where to place images*/
......
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