svn commit: r307919 - stable/11/usr.sbin/bhyve
Baptiste Daroussin
bapt at FreeBSD.org
Tue Oct 25 15:21:21 UTC 2016
Author: bapt
Date: Tue Oct 25 15:21:20 2016
New Revision: 307919
URL: https://svnweb.freebsd.org/changeset/base/307919
Log:
accept4 actually expect SOCK_NONBLOCK and not O_NONBLOCK
Reported by: jhb
Pointyhat to: bapt
Modified:
stable/11/usr.sbin/bhyve/dbgport.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/usr.sbin/bhyve/dbgport.c
==============================================================================
--- stable/11/usr.sbin/bhyve/dbgport.c Tue Oct 25 15:21:08 2016 (r307918)
+++ stable/11/usr.sbin/bhyve/dbgport.c Tue Oct 25 15:21:20 2016 (r307919)
@@ -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-stable
mailing list