]> git.ipfire.org Git - thirdparty/lxc.git/commit
handle the stop command
authorDaniel Lezcano <dlezcano@fr.ibm.com>
Wed, 7 Oct 2009 14:06:08 +0000 (16:06 +0200)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Wed, 7 Oct 2009 14:06:08 +0000 (16:06 +0200)
commit2137dc998b884a4f3e0b1f365bb14f6ccd010243
tree2e7f6c5dca6a5df28115a3a959d271c6a92cd798
parent3cc5de3619c0ac6c2a9046ff7e50e9d6dfc1d0fd
handle the stop command

Handle the stop command. The stop command waits for the peer to
disconnect, that means the peer has exited, so it is safe to
return to the user control. By this way, we ensure a stop command
followed by a start or a destroy won't fail with a race condition
because the start command is not yet finised.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
Signed-off-by: Michel Normand <normand@fr.ibm.com>
src/lxc/commands.c
src/lxc/commands.h
src/lxc/stop.c