Commit bced9b01 by Serge Hallyn

Merge pull request #1005 from tych0/warn-about-unexpected-sync-size

sync: fail on unexpected message sizes
parents 297dbb7b fcd59cf0
......@@ -47,6 +47,11 @@ static int __sync_wait(int fd, int sequence)
if (!ret)
return 0;
if (ret != sizeof(sync)) {
ERROR("unexpected sync size: %d expected %lu", ret, sizeof(sync));
return -1;
}
if (sync == LXC_SYNC_ERROR) {
ERROR("An error occurred in another process "
"(expected sequence number %d)", sequence);
......
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