diff options
author | Djalal Harouni <tixxdz@opendz.org> | 2014-05-24 14:58:54 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-05-25 11:23:30 +0800 |
commit | 113cea802db444beab4783538d39966f707be788 (patch) | |
tree | be46c30a9d817aac435a173c7ba407fbdd79091a /src/sysctl | |
parent | 6b56a65123720325ad5084b3e888bf6bfe89c148 (diff) |
nspawn: move container wait logic into wait_for_container()
Move the container wait logic into its own wait_for_container() function
and add two status codes: CONTAINER_TERMINATED or CONTAINER_REBOOTED.
The status will be stored in its argument, this way we handle:
a) Return negative on failures.
b) Return zero on success and set the status to either
CONTAINER_REBOOTED or CONTAINER_TERMINATED.
These status codes are used to terminate nspawn or loop again in case of
CONTAINER_REBOOTED.
Diffstat (limited to 'src/sysctl')
0 files changed, 0 insertions, 0 deletions