summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2016-12-02 08:15:52 +0000
committerjulian <julian@FreeBSD.org>2016-12-02 08:15:52 +0000
commit9952b598c2be606751b6447fcdd36432bcd1616b (patch)
tree29ea5031467a8573579b07d5cf114c4d49d535e2
parent3ccbb075af69079e3b7b377f577cb1e3641d23f6 (diff)
downloadFreeBSD-src-9952b598c2be606751b6447fcdd36432bcd1616b.zip
FreeBSD-src-9952b598c2be606751b6447fcdd36432bcd1616b.tar.gz
MFH: r307917
accept4 actually expect SOCK_NONBLOCK and not O_NONBLOCK Reported by: jhb Pointyhat to: bapt
-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