mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-16 01:52:34 +00:00
Merge pull request #1005 from tych0/warn-about-unexpected-sync-size
sync: fail on unexpected message sizes
This commit is contained in:
commit
bced9b015a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user