Re: [PATCH v2] qemu: add a monitor to /proc/$pid when killing times out

2024-07-19 Thread Boris Fiuczynski
On 7/19/24 3:29 PM, Daniel P. Berrangé wrote: +static int +qemuProcessInShutdownStartMonitor(virDomainObj *vm) +{ +qemuDomainObjPrivate *priv = vm->privateData; +qemuProcessInShutdownEventData *data; +int pidfd; +int ret = -1; + +VIR_DEBUG("vm=%p name=%s pid=%lld pidMonitored=

Re: [PATCH v2] qemu: add a monitor to /proc/$pid when killing times out

2024-07-19 Thread Daniel P . Berrangé
On Fri, Jul 19, 2024 at 02:58:23PM +0200, Boris Fiuczynski wrote: > In cases when a QEMU process takes longer than the time sigterm and > sigkill are issued to kill the process do not simply fail and leave the > VM in state VIR_DOMAIN_SHUTDOWN until the daemon stops. Instead set up > an fd on /proc

[PATCH v2] qemu: add a monitor to /proc/$pid when killing times out

2024-07-19 Thread Boris Fiuczynski
In cases when a QEMU process takes longer than the time sigterm and sigkill are issued to kill the process do not simply fail and leave the VM in state VIR_DOMAIN_SHUTDOWN until the daemon stops. Instead set up an fd on /proc/$pid and get notified when the QEMU process finally has terminated to cle