"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/lxc/sync.c" between
lxc-4.0.9.tar.gz and lxc-4.0.10.tar.gz

About: LXC are userspace tools for the Linux kernel containers that let users easily create and manage system or application containers.

sync.c  (lxc-4.0.9):sync.c  (lxc-4.0.10)
skipping to change at line 71 skipping to change at line 71
static inline const char *start_sync_to_string(int state) static inline const char *start_sync_to_string(int state)
{ {
switch (state) { switch (state) {
case START_SYNC_STARTUP: case START_SYNC_STARTUP:
return "startup"; return "startup";
case START_SYNC_CONFIGURE: case START_SYNC_CONFIGURE:
return "configure"; return "configure";
case START_SYNC_POST_CONFIGURE: case START_SYNC_POST_CONFIGURE:
return "post-configure"; return "post-configure";
case START_SYNC_CGROUP:
return "cgroup";
case START_SYNC_CGROUP_UNSHARE:
return "cgroup-unshare";
case START_SYNC_CGROUP_LIMITS: case START_SYNC_CGROUP_LIMITS:
return "cgroup-limits"; return "cgroup-limits";
case START_SYNC_IDMAPPED_MOUNTS:
return "idmapped-mounts";
case START_SYNC_FDS:
return "fds";
case START_SYNC_READY_START: case START_SYNC_READY_START:
return "ready-start"; return "ready-start";
case START_SYNC_RESTART: case START_SYNC_RESTART:
return "restart"; return "restart";
case START_SYNC_POST_RESTART: case START_SYNC_POST_RESTART:
return "post-restart"; return "post-restart";
case SYNC_ERROR: case SYNC_ERROR:
return "error"; return "error";
default: default:
return "invalid sync state"; return "invalid sync state";
skipping to change at line 112 skipping to change at line 112
} }
bool lxc_sync_wake_parent(struct lxc_handler *handler, int sequence) bool lxc_sync_wake_parent(struct lxc_handler *handler, int sequence)
{ {
TRACE("Child waking parent with sequence %s", start_sync_to_string(sequen ce)); TRACE("Child waking parent with sequence %s", start_sync_to_string(sequen ce));
return sync_wake(handler->sync_sock[0], sequence); return sync_wake(handler->sync_sock[0], sequence);
} }
bool lxc_sync_wait_parent(struct lxc_handler *handler, int sequence) bool lxc_sync_wait_parent(struct lxc_handler *handler, int sequence)
{ {
TRACE("Parent waiting for child with sequence %s", start_sync_to_string(s equence)); TRACE("Child waiting for parent with sequence %s", start_sync_to_string(s equence));
return sync_wait(handler->sync_sock[0], sequence); return sync_wait(handler->sync_sock[0], sequence);
} }
bool lxc_sync_wait_child(struct lxc_handler *handler, int sequence) bool lxc_sync_wait_child(struct lxc_handler *handler, int sequence)
{ {
TRACE("Child waiting for parent with sequence %s", start_sync_to_string(s equence)); TRACE("Parent waiting for child with sequence %s", start_sync_to_string(s equence));
return sync_wait(handler->sync_sock[1], sequence); return sync_wait(handler->sync_sock[1], sequence);
} }
bool lxc_sync_wake_child(struct lxc_handler *handler, int sequence) bool lxc_sync_wake_child(struct lxc_handler *handler, int sequence)
{ {
TRACE("Child waking parent with sequence %s", start_sync_to_string(sequen ce)); TRACE("Parent waking child with sequence %s", start_sync_to_string(sequen ce));
return sync_wake(handler->sync_sock[1], sequence); return sync_wake(handler->sync_sock[1], sequence);
} }
bool lxc_sync_init(struct lxc_handler *handler) bool lxc_sync_init(struct lxc_handler *handler)
{ {
int ret; int ret;
ret = socketpair(AF_LOCAL, SOCK_STREAM, 0, handler->sync_sock); ret = socketpair(AF_LOCAL, SOCK_STREAM, 0, handler->sync_sock);
if (ret) if (ret)
return log_error_errno(false, errno, "failed to create synchroniz ation socketpair"); return log_error_errno(false, errno, "failed to create synchroniz ation socketpair");
 End of changes. 5 change blocks. 
7 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)