summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2016-10-25 15:21:20 +0000
committerbapt <bapt@FreeBSD.org>2016-10-25 15:21:20 +0000
commit5a69fd8f30b7ec50abe88f36060e630599880492 (patch)
tree9132df46ad5f2a2c5dc82c11a91ae30dd3dd8791 /usr.sbin
parenta275de7b3ee5c183900db6cf157683d480d89025 (diff)
downloadFreeBSD-src-5a69fd8f30b7ec50abe88f36060e630599880492.zip
FreeBSD-src-5a69fd8f30b7ec50abe88f36060e630599880492.tar.gz
accept4 actually expect SOCK_NONBLOCK and not O_NONBLOCK
Reported by: jhb Pointyhat to: bapt
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/bhyve/dbgport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/bhyve/dbgport.c b/usr.sbin/bhyve/dbgport.c
index 6e6c83f..1421402 100644
--- a/usr.sbin/bhyve/dbgport.c
+++ b/usr.sbin/bhyve/dbgport.c
@@ -73,7 +73,7 @@ again:
printf("Waiting for connection from gdb\r\n");
printonce = 1;
}
- conn_fd = accept4(listen_fd, NULL, NULL, O_NONBLOCK);
+ conn_fd = accept4(listen_fd, NULL, NULL, SOCK_NONBLOCK);
if (conn_fd < 0 && errno != EINTR)
perror("accept");
}
OpenPOWER on IntegriCloud