diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2009-08-20 08:34:21 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2009-08-20 08:34:21 +0000 |
commit | 1c1b04b84cfedf7a7c6ce087d9644d6648372676 (patch) | |
tree | 2164743f228755601941500265256852b44a165a /winsup/cygwin/dtable.h | |
parent | 5546e07b4f4106b0f11d3d1ab206422a636fd42b (diff) | |
download | cygnal-1c1b04b84cfedf7a7c6ce087d9644d6648372676.tar.gz cygnal-1c1b04b84cfedf7a7c6ce087d9644d6648372676.tar.bz2 cygnal-1c1b04b84cfedf7a7c6ce087d9644d6648372676.zip |
* dtable.cc (build_fh_dev): Take additional bool parameter indicating
whether set_name should be called or not.
(dtable::dup_worker): Call build_fh_pc with new second parameter set
to false. Explain why. If fhandler's dup failed, delete rather than
cfree newfh and set newfh to NULL to indicate failure correctly.
* dtable.h (build_fh_pc): Change declaration according to above change.
Default set_name parameter to true.
* mmap.cc (mmap_record::free_fh): Delete rather than cfree fh.
Diffstat (limited to 'winsup/cygwin/dtable.h')
-rw-r--r-- | winsup/cygwin/dtable.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/dtable.h b/winsup/cygwin/dtable.h index f685624bc..9d187e819 100644 --- a/winsup/cygwin/dtable.h +++ b/winsup/cygwin/dtable.h @@ -83,7 +83,7 @@ public: fhandler_base *build_fh_dev (const device&, const char * = NULL); fhandler_base *build_fh_name (const char *, HANDLE = NULL, unsigned = 0, suffix_info * = NULL); fhandler_base *build_fh_name (const UNICODE_STRING *, HANDLE = NULL, unsigned = 0, suffix_info * = NULL); -fhandler_base *build_fh_pc (path_conv& pc); +fhandler_base *build_fh_pc (path_conv& pc, bool set_name = true); void dtable_init (); void stdio_init (); |