]> git.openfabrics.org - ~shefty/librdmacm.git/commitdiff
Refresh of dbg-out
authorSean Hefty <sean.hefty@intel.com>
Tue, 7 Aug 2012 18:29:28 +0000 (11:29 -0700)
committerSean Hefty <sean.hefty@intel.com>
Tue, 7 Aug 2012 18:29:28 +0000 (11:29 -0700)
src/preload.c

index c1f68a6b0f4b7c5c0be41b82cab4093eb33d03a9..55ee5354759958b7685c733f3eb16f6216ece33d 100644 (file)
@@ -974,10 +974,13 @@ int fstat(int socket, struct stat *buf)
        fprintf(fout, "fstat");
        if (fd_get(socket, &fd) == fd_rsocket) {
                ret = real.fstat(socket, buf);
+               fprintf(fout, "fstat - rsocket %d", ret);
                if (!ret)
                        buf->st_mode = (buf->st_mode & ~S_IFMT) | __S_IFSOCK;
        } else {
                ret = real.fstat(fd, buf);
+               fprintf(fout, "fstat - normal %d", ret);
        }
+       fflush(fout);
        return ret;
 }