svn commit: r309399 - stable/10/usr.sbin/bhyve

Julian Elischer julian at FreeBSD.org
Fri Dec 2 08:15:54 UTC 2016


Author: julian
Date: Fri Dec  2 08:15:52 2016
New Revision: 309399
URL: https://svnweb.freebsd.org/changeset/base/309399

Log:
  MFH: r307917
  
  accept4 actually expect SOCK_NONBLOCK and not O_NONBLOCK
  
  Reported by:	jhb
  Pointyhat to:	bapt

Modified:
  stable/10/usr.sbin/bhyve/dbgport.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/usr.sbin/bhyve/dbgport.c
==============================================================================
--- stable/10/usr.sbin/bhyve/dbgport.c	Fri Dec  2 08:12:51 2016	(r309398)
+++ stable/10/usr.sbin/bhyve/dbgport.c	Fri Dec  2 08:15:52 2016	(r309399)
@@ -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