env_stop(): check child exit code, do not wait if non-zero

In case real_env_stop() fails for any reason (such as when vz_setluid()
fails), do not wait for environment to be stopped, fail right away.

While at it, also:
* log "Killing container" when we are going to kill it (such as when
   doing vzctl stop --fast)
* only print "operation time out when it's really the case

Reported-by: Glauber Costa <glommer@openvz.org>
Signed-off-by: Kir Kolyshkin <kir@openvz.org>
1 file changed