aboutsummaryrefslogtreecommitdiff
path: root/lib/memdebug.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2000-12-18 16:13:37 +0000
committerDaniel Stenberg <daniel@haxx.se>2000-12-18 16:13:37 +0000
commit184ad46a27dc65a82faa2cda76fe91bcca3404cf (patch)
tree34cd8bc1c63d52318f6c686f0da4f47d96712fc4 /lib/memdebug.c
parent74d35416a2ee4d0baa84e2b5daab2fc96dda5a58 (diff)
fixed accept() for memory debugging
Diffstat (limited to 'lib/memdebug.c')
-rw-r--r--lib/memdebug.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/memdebug.c b/lib/memdebug.c
index cbd860ec1..1bd945e0d 100644
--- a/lib/memdebug.c
+++ b/lib/memdebug.c
@@ -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)
{