We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33439bb commit 7f64758Copy full SHA for 7f64758
lib/sockets/manage_fd.c
@@ -76,8 +76,7 @@ int flextcp_fd_salloc(struct socket **ps)
76
/* no more file handles available */
77
if (fd >= MAXSOCK) {
78
free(s);
79
- /* TODO: enusure this is the libc close */
80
- close(fd);
+ tas_libc_close(fd);
81
errno = EMFILE;
82
return -1;
83
}
@@ -161,8 +160,7 @@ void flextcp_fd_close(int fd)
161
160
162
fhs[fd].type = FH_UNUSED;
163
MEM_BARRIER();
164
165
166
167
168
/* do the tas-internal part of duping oldfd to newfd, after the linux fds have
0 commit comments