]> git.proxmox.com Git - pve-container.git/commit
fix #2086: change process checking mechanism in vmstatus
authorOguz Bektas <o.bektas@proxmox.com>
Mon, 11 Feb 2019 14:51:06 +0000 (15:51 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 13 Feb 2019 09:14:19 +0000 (10:14 +0100)
commit2ff1c49ce16f1bace9d511cdbe18b3dd860004b9
treebfb0d3d70d288c653c8ecb5c3d3bc72992b9c33f
parent3996a07a54d011f98fa09c9c17ac6ef6cb0b7dc8
fix #2086: change process checking mechanism in vmstatus

vmstatus checked if the container was running by looking at the pid,
which was not an indicator of the process being completely stopped, as
the command socket in /proc/net/unix stays a little while after the
process is dead according to lxc-info.

this resulted in destroy_vm and similar functions which use
/proc/net/unix command socket based checking mechanism to fail when
executed too fast after the vm_status reported the process as stopped.

this changes vm_status to use the same kind of command socket based
mechanism in order to avoid reporting the container as being stopped too
early.

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
src/PVE/LXC.pm