]> git.openfabrics.org - ~shefty/librdmacm.git/commitdiff
Refresh of dbg-out
authorSean Hefty <sean.hefty@intel.com>
Wed, 8 Aug 2012 04:50:58 +0000 (21:50 -0700)
committerSean Hefty <sean.hefty@intel.com>
Wed, 8 Aug 2012 04:50:58 +0000 (21:50 -0700)
src/preload.c

index 4379bfc7d20c242cce34443c692da10a80a379ac..be2487f707ff3cec039c7ae73a8794afb057be1a 100644 (file)
@@ -442,6 +442,8 @@ int accept(int socket, struct sockaddr *addr, socklen_t *addrlen)
        enum fd_type type;
 
        type = fd_get(socket, &fd);
+       fprintf(fout, "%d accept fd %d\n", syscall(SYS_gettid), socket);
+       fflush(fout);
        if (type == fd_rsocket || type == fd_fork) {
                index = fd_open();
                if (index < 0)
@@ -454,6 +456,8 @@ int accept(int socket, struct sockaddr *addr, socklen_t *addrlen)
                        return ret;
                }
 
+               fprintf(fout, "%d accept fd %d new fd\n", syscall(SYS_gettid), socket, index);
+               fflush(fout);
                fd_store(index, ret, type);
                return index;
        } else {