diff --git a/src/fdlib.c b/src/fdlib.c index 1d34b45b1f1905cce155ed8ec2947e1cce882265..1e7a7dfce8382a868e9a471b339645618f21924c 100644 --- a/src/fdlib.c +++ b/src/fdlib.c @@ -316,6 +316,8 @@ int fd_to_handle(int fd, int *type, HANDLE *handle) if (handle) *handle = da_handle[fd]; fd_busy[fd] = 1; ret = 0; + FDDEBUG(fprintf(stderr, "fd %d ==> handle: %ld (%d)\n", + fd, (long)da_handle[fd], fd_type[fd])); } else { FDDEBUG(fprintf(stderr, "fd %d is invalid.\n", fd)); errno = EBADF;