From 26e4dcf8ee17cbdef36de03476d2066cb0b2028a Mon Sep 17 00:00:00 2001 From: Dino Korah <691011+codemedic@users.noreply.github.com> Date: Sun, 22 Mar 2026 17:39:39 +0000 Subject: [PATCH] fix: remove stale virtiofsd socket before starting daemon --- quickemu | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/quickemu b/quickemu index 15901b5..7d3141a 100755 --- a/quickemu +++ b/quickemu @@ -1626,6 +1626,10 @@ function start_virtiofsd() { fi VIRTIOFSD_SOCKET="${VMDIR}/${VMNAME}.virtiofsd-sock" + # Remove any stale socket left by an unclean shutdown. quickemu already + # checks the PID file and refuses to start if the VM is running, so a + # live virtiofsd cannot be behind this socket at this point. + rm -f "${VIRTIOFSD_SOCKET}" local virtiofsd_args=( --socket-path="${VIRTIOFSD_SOCKET}" --shared-dir="${PUBLIC}"