mirror of
https://github.com/curl/curl.git
synced 2026-07-24 21:07:28 +03:00
fixed accept() for memory debugging
This commit is contained in:
parent
74d35416a2
commit
184ad46a27
4 changed files with 20 additions and 0 deletions
|
|
@ -133,6 +133,15 @@ int curl_socket(int domain, int type, int protocol, int line, char *source)
|
|||
return sockfd;
|
||||
}
|
||||
|
||||
int curl_accept(int s, struct sockaddr *addr, int *addrlen,
|
||||
int line, char *source)
|
||||
{
|
||||
int sockfd=(accept)(s, addr, addrlen);
|
||||
fprintf(logfile?logfile:stderr, "FD %s:%d accept() = %d\n",
|
||||
source, line, sockfd);
|
||||
return sockfd;
|
||||
}
|
||||
|
||||
/* this is our own defined way to close sockets on *ALL* platforms */
|
||||
int curl_sclose(int sockfd, int line, char *source)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue