* fhandler_socket.cc (fhandler_socket::dup): Decrement dtable's

need_fixup_before counter on successful dup.
	* net.cc (cygwin_getpeername): Add file descriptor to debug output.
This commit is contained in:
Corinna Vinschen
2004-08-19 10:58:37 +00:00
parent 6a19fd82fa
commit 82b3018088
3 changed files with 12 additions and 2 deletions

View File

@@ -1170,7 +1170,7 @@ cygwin_getpeername (int fd, struct sockaddr *name, int *len)
else
res = fh->getpeername (name, len);
syscall_printf ("%d = getpeername %d", res, (fh ? fh->get_socket () : -1));
syscall_printf ("%d = getpeername (%d) %d", res, fd, (fh ? fh->get_socket () : -1));
return res;
}