mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
accept4 actually expect SOCK_NONBLOCK and not O_NONBLOCK
Reported by: jhb Pointyhat to: bapt
This commit is contained in:
parent
405804dd31
commit
a146e36c02
1 changed files with 1 additions and 1 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue