posix_sockets: fix use of fd_new
This commit is contained in:
parent
6b0cf6a728
commit
331c60409e
@ -442,8 +442,7 @@ int accept(int socket, struct sockaddr *restrict address,
|
|||||||
sa_len);
|
sa_len);
|
||||||
|
|
||||||
}
|
}
|
||||||
int fd = fd_new(new_s - _socket_pool, socket_read, socket_write,
|
int fd = vfs_bind(VFS_ANY_FD, 0, &socket_ops, new_s);
|
||||||
socket_close);
|
|
||||||
if (fd < 0) {
|
if (fd < 0) {
|
||||||
errno = ENFILE;
|
errno = ENFILE;
|
||||||
res = -1;
|
res = -1;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user