On 10/21/26 7:38 AM, Ben Grande wrote:
Signed-off-by: Ben Grande <[email protected]>
---
  src/lxc/lxc_process.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lxc/lxc_process.c b/src/lxc/lxc_process.c
index 466ce07afd..b9fa21a815 100644
--- a/src/lxc/lxc_process.c
+++ b/src/lxc/lxc_process.c
@@ -727,7 +727,7 @@ static void virLXCProcessMonitorExitNotify(virLXCMonitor 
*mon G_GNUC_UNUSED,
          priv->stopReason = VIR_DOMAIN_EVENT_STOPPED_FAILED;
          break;
      case VIR_LXC_MONITOR_EXIT_STATUS_REBOOT:
-        priv->stopReason = VIR_DOMAIN_EVENT_STOPPED_SHUTDOWN;
+        priv->stopReason = VIR_DOMAIN_EVENT_STOPPED_REBOOT;

AFAICT, this is only used when virLXCProcessReboot() fails in virLXCProcessMonitorEOFNotify(), in which case the stopped lifecycle event would have reason 'reboot' instead of 'shutdown'.

Perhaps it's fine, but wanted to bring the subtle change to attention. It would be interesting to hear others opinion.

Regards,
Jim

Reply via email to