diff --git a/src/lxc/freezer.c b/src/lxc/freezer.c index 2a6f0f52e..3e4f55da5 100644 --- a/src/lxc/freezer.c +++ b/src/lxc/freezer.c @@ -32,6 +32,8 @@ #include #include "error.h" +#include "state.h" +#include "monitor.h" #include #include @@ -95,7 +97,10 @@ static int freeze_unfreeze(const char *name, int freeze) ret = strncmp(f, tmpf, strlen(f)); if (!ret) + { + lxc_monitor_send_state(name, freeze ? FROZEN : THAWED); break; /* Success */ + } sleep(1); @@ -119,6 +124,7 @@ out: int lxc_freeze(const char *name) { + lxc_monitor_send_state(name, FREEZING); return freeze_unfreeze(name, 1); } diff --git a/src/lxc/lxc_wait.c b/src/lxc/lxc_wait.c index de1163e37..799225d97 100644 --- a/src/lxc/lxc_wait.c +++ b/src/lxc/lxc_wait.c @@ -70,7 +70,7 @@ Options :\n\ -n, --name=NAME NAME for name of the container\n\ -s, --state=STATE ORed states to wait for\n\ STOPPED, STARTING, RUNNING, STOPPING,\n\ - ABORTING, FREEZING, FROZEN\n\ + ABORTING, FREEZING, FROZEN, THAWED\n\ -t, --timeout=TMO Seconds to wait for state changes\n", .options = my_longopts, .parser = my_parser,