diff options
author | Christopher Faylor <me@cgf.cx> | 2012-01-22 11:27:57 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2012-01-22 11:27:57 +0400 |
commit | 0646a508aa06cf300214187237714b14cd5d5136 (patch) | |
tree | 59a7c784b10b660cfc42ebcb495fb2850ddee3e7 /winsup/cygwin/cygheap.h | |
parent | ad87edbe61a324a67be86eb0d2efafa4d52b4a6f (diff) |
* cygheap.h (cygheap_fdmanip::release): Simplify.
* dtable.cc (dtable::release): Make void again. Skip not_open check since it
is guaranteed to be open. Don't bother deleting here since actual deletion
will be handled in cygheap_fdget::~cygheap_fdget.
* dtable.h (dtable::release): Make void again.
* syscalls.cc (dup2): Bump fhandler use count on successful dup.
Diffstat (limited to 'winsup/cygwin/cygheap.h')
-rw-r--r-- | winsup/cygwin/cygheap.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/winsup/cygwin/cygheap.h b/winsup/cygwin/cygheap.h index 3bba1ae9f..2c9077ada 100644 --- a/winsup/cygwin/cygheap.h +++ b/winsup/cygwin/cygheap.h @@ -407,12 +407,7 @@ public: delete fh; } } - void release () - { - fh = cygheap->fdtab[fd]; - if (cygheap->fdtab.release (fd)) - fh = NULL; - } + void release () { cygheap->fdtab.release (fd); } }; class cygheap_fdenum : public cygheap_fdmanip |