bhyve: Use a blocking socket in the helper process

The send_packet callback does not handle EAGAIN, and on the recv side we
already use poll() and MSG_DONTWAIT to implement a non-blocking loop.

PR:		291616
Tested by:	novel
Fixes:		0e62ebd201 ("bhyve: Move the slirp backend out into a separate process")
Differential Revision:	https://reviews.freebsd.org/D54340
This commit is contained in:
Mark Johnston
2025-12-22 19:12:34 +00:00
parent 85f499be90
commit daef625cf8
+2
View File
@@ -503,6 +503,8 @@ main(int argc, char **argv)
memset(&priv, 0, sizeof(priv));
priv.sock = sd;
if (ioctl(priv.sock, FIONBIO, &(int){0}) == -1)
err(1, "ioctl(FIONBIO)");
if (pipe2(priv.wakeup, O_CLOEXEC | O_NONBLOCK) != 0)
err(1, "pipe2");