[upstream] vzctl stop: wait for tasks to vanish before considering empty complete

We are currently facing problems because by the time we finish
empty_container, some tasks may still be on their way to process the
kill signal we just issued. A start / stop sequence can fail to cleanup
the container due to that, and the same problem affects restart.

Signed-off-by: Glauber Costa <glommer@parallels.com>
2 files changed