Signed-off-by: Aleksandr Mezin <mezin.alexander@gmail.com>
#include <errno.h>
#include <fcntl.h>
+#include "sync.h"
#include "log.h"
#include "start.h"
if (!ret)
return 0;
+ if (sync == LXC_SYNC_ERROR) {
+ ERROR("An error occurred in another process "
+ "(expected sequence number %d)", sequence);
+ return -1;
+ }
+
if (sync != sequence) {
ERROR("invalid sequence number %d. expected %d",
sync, sequence);
LXC_SYNC_POST_CGROUP,
LXC_SYNC_RESTART,
LXC_SYNC_POST_RESTART,
+ LXC_SYNC_ERROR = -1 /* Used to report errors from another process */
};
int lxc_sync_init(struct lxc_handler *handler);