build-support/vm: reduce waiting time for vsock
the check is cheap so 100ms is better to reduce latency
This commit is contained in:
@@ -307,8 +307,8 @@ let
|
||||
${virtiofsd}/bin/virtiofsd --xattr --socket-path virtio-xchg.sock --sandbox none --seccomp none --shared-dir xchg &
|
||||
|
||||
# Wait until virtiofsd has created these sockets to avoid race condition.
|
||||
until [[ -e virtio-store.sock ]]; do ${coreutils}/bin/sleep 1; done
|
||||
until [[ -e virtio-xchg.sock ]]; do ${coreutils}/bin/sleep 1; done
|
||||
until [[ -e virtio-store.sock ]]; do ${coreutils}/bin/sleep 0.1; done
|
||||
until [[ -e virtio-xchg.sock ]]; do ${coreutils}/bin/sleep 0.1; done
|
||||
|
||||
${qemuCommand}
|
||||
EOF
|
||||
|
||||
Reference in New Issue
Block a user