svn commit: r307917 - head/usr.sbin/bhyve
Baptiste Daroussin
bapt at FreeBSD.org
Tue Oct 25 15:20:08 UTC 2016
Author: bapt
Date: Tue Oct 25 15:20:06 2016
New Revision: 307917
URL: https://svnweb.freebsd.org/changeset/base/307917
Log:
accept4 actually expect SOCK_NONBLOCK and not O_NONBLOCK
Reported by: jhb
Pointyhat to: bapt
Modified:
head/usr.sbin/bhyve/dbgport.c
Modified: head/usr.sbin/bhyve/dbgport.c
==============================================================================
--- head/usr.sbin/bhyve/dbgport.c Tue Oct 25 14:58:49 2016 (r307916)
+++ head/usr.sbin/bhyve/dbgport.c Tue Oct 25 15:20:06 2016 (r307917)
@@ -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");
}
More information about the svn-src-all
mailing list