diff options
author | Christopher Faylor <me@cgf.cx> | 2009-08-05 04:44:27 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2009-08-05 04:44:27 +0000 |
commit | a99345591f51350eee9f52fab5163412edef1804 (patch) | |
tree | d66784de8d41dca15517d79f14cc78b0593fa7e1 /winsup/cygwin/dtable.cc | |
parent | 7f01964f06effba5278ce060ebf55b7e080c59a8 (diff) | |
download | cygnal-a99345591f51350eee9f52fab5163412edef1804.tar.gz cygnal-a99345591f51350eee9f52fab5163412edef1804.tar.bz2 cygnal-a99345591f51350eee9f52fab5163412edef1804.zip |
* cygheap.h (cygheap_debug::endh): Delete.
* debug.cc (lock_debug::acquired): Delete.
(lock_debug::lock_debug): Simplify.
(lock_debug::unlock): Ditto.
(find_handle): Don't set endh here.
(add_handle): Add new handle to beginning of the list rather than trying to
maintain an end list pointer.
(delete_handle): Minor optimization.
(mark_closed): Make logic clearer.
(verify_handle): Lock handle list before scanning.
(setclexec): Ditto.
(modify_handle): Ditto.
(newh): Don't lock handle list here. Assume caller did this.
(mark_closed): Ditto.
(close_handle): Remove unneeded #if.
* dtable.cc (dtable::dup2): Tweak debug output.
Diffstat (limited to 'winsup/cygwin/dtable.cc')
-rw-r--r-- | winsup/cygwin/dtable.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/dtable.cc b/winsup/cygwin/dtable.cc index c361d01da..aa4c6e7f6 100644 --- a/winsup/cygwin/dtable.cc +++ b/winsup/cygwin/dtable.cc @@ -631,8 +631,8 @@ dtable::dup2 (int oldfd, int newfd) goto done; } - debug_printf ("newfh->io_handle %p, oldfh->io_handle %p", - newfh->get_io_handle (), fds[oldfd]->get_io_handle ()); + debug_printf ("newfh->io_handle %p, oldfh->io_handle %p, new win32_name %p, old win32_name %p", + newfh->get_io_handle (), fds[oldfd]->get_io_handle (), newfh->get_win32_name (), fds[oldfd]->get_win32_name ()); if (!not_open (newfd)) close (newfd); |