uvms: do not rm vsock.sock until vmm is down

This commit is contained in:
Else Someone 2026-03-15 01:32:28 +02:00
parent 0692a20ae9
commit 90614bdf74

View file

@ -464,7 +464,7 @@ def connect_ch_vsock(
s.setblocking(blocking)
s.connect(vsock_sock_path)
with removing(vsock_sock_path):
with closing(s):
s.send(b"CONNECT %d\n" % port)
yield s
@ -662,6 +662,7 @@ def main(args, args_next, cleanup, ps):
assert ready
cleanup.enter_context(removing(ps.prefix + "/vsock.sock"))
with connect_ch_vsock(ps.prefix + "/vsock.sock", 24601) as guest:
for r in args.run:
res = {}