]> sourceware.org Git - newlib-cygwin.git/commitdiff
Cygwin: dtable::dup_worker: update comment and debug output
authorKen Brown <kbrown@cornell.edu>
Mon, 7 Dec 2020 21:19:57 +0000 (16:19 -0500)
committerKen Brown <kbrown@cornell.edu>
Mon, 7 Dec 2020 21:19:57 +0000 (16:19 -0500)
The comment and debug output became obsolete in commit 23771fa1f7 when
dup_worker started calling fhandler_base::clone instead of build_fh_pc
and fhandler_base::operator=.

winsup/cygwin/dtable.cc

index 6a91e33bc03a5c5d09aff99cff45ee7d71132040..9f4210797b084569fd0194971085e0fa828cceab 100644 (file)
@@ -679,12 +679,9 @@ out:
 fhandler_base *
 dtable::dup_worker (fhandler_base *oldfh, int flags)
 {
-  /* Don't call set_name in build_fh_pc.  It will be called in
-     fhandler_base::operator= below.  Calling it twice will result
-     in double allocation. */
   fhandler_base *newfh = oldfh->clone ();
   if (!newfh)
-    debug_printf ("build_fh_pc failed");
+    debug_printf ("clone failed");
   else
     {
       if (!oldfh->archetype)
This page took 0.03249 seconds and 5 git commands to generate.