OSDN Git Service

* fhandler_registry.cc (fhandler_registry::close): Return any error result to
authorcgf <cgf>
Fri, 26 Jul 2002 19:58:00 +0000 (19:58 +0000)
committercgf <cgf>
Fri, 26 Jul 2002 19:58:00 +0000 (19:58 +0000)
the caller.
* syscalls.cc (_close): Return result of fhandler::close to the caller.

winsup/cygwin/ChangeLog
winsup/cygwin/fhandler_registry.cc
winsup/cygwin/syscalls.cc

index 989f978..486554c 100644 (file)
@@ -1,3 +1,9 @@
+2002-07-26  Conrad Scott  <conrad.scott@dsl.pipex.com>
+
+       * fhandler_registry.cc (fhandler_registry::close): Return any error
+       result to the caller.
+       * syscalls.cc (_close): Return result of fhandler::close to the caller.
+
 2002-07-25  Christopher Faylor  <cgf@redhat.com>
 
        * security.cc (allow_ntsec): Default to on.
index 4fc875a..f2e5e21 100644 (file)
@@ -533,7 +533,7 @@ fhandler_registry::close ()
     }
   if (value_name)
     cfree (value_name);
-  return 0;
+  return res;
 }
 
 bool
index f2d7b19..7efe14f 100644 (file)
@@ -578,9 +578,8 @@ _close (int fd)
     res = -1;
   else
     {
-      cfd->close ();
+      res = cfd->close ();
       cfd.release ();
-      res = 0;
     }
 
   syscall_printf ("%d = close (%d)", res, fd);