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:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user