Date: Fri, 2 Dec 2016 08:15:52 +0000 (UTC) From: Julian Elischer <julian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r309399 - stable/10/usr.sbin/bhyve Message-ID: <201612020815.uB28FqWX097728@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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"); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612020815.uB28FqWX097728>