Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2012-01-22 11:27:57 +0400
committerChristopher Faylor <me@cgf.cx>2012-01-22 11:27:57 +0400
commit0646a508aa06cf300214187237714b14cd5d5136 (patch)
tree59a7c784b10b660cfc42ebcb495fb2850ddee3e7 /winsup/cygwin/cygheap.h
parentad87edbe61a324a67be86eb0d2efafa4d52b4a6f (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.h7
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