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/dtable.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/dtable.h')
-rw-r--r-- | winsup/cygwin/dtable.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/dtable.h b/winsup/cygwin/dtable.h index cab9ac577..d0065f421 100644 --- a/winsup/cygwin/dtable.h +++ b/winsup/cygwin/dtable.h @@ -1,7 +1,7 @@ /* dtable.h: fd table definition. Copyright 2000, 2001, 2003, 2004, 2005, 2006, 2007, 2008, 2009, - 2010, 2011 Red Hat, Inc. + 2010, 2011, 2012 Red Hat, Inc. This file is part of Cygwin. @@ -63,7 +63,7 @@ public: } int find_unused_handle (int start); int find_unused_handle () { return find_unused_handle (first_fd_for_open);} - bool release (int fd) __attribute__ ((regparm (2))); + void release (int fd) __attribute__ ((regparm (2))); void init_std_file_from_handle (int fd, HANDLE handle); int dup3 (int oldfd, int newfd, int flags); void fixup_after_exec (); |