1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-02-04 17:15:50 +00:00

accept4 actually expect SOCK_NONBLOCK and not O_NONBLOCK

Reported by:	jhb
Pointyhat to:	bapt
This commit is contained in:
Baptiste Daroussin 2016-10-25 15:20:06 +00:00
parent 405804dd31
commit a146e36c02
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=307917

View File

@ -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");
}