* fhandler_registry.cc (fhandler_registry::close): Return any error result to

the caller.
* syscalls.cc (_close): Return result of fhandler::close to the caller.
This commit is contained in:
Christopher Faylor
2002-07-26 19:58:00 +00:00
parent 6b6425cb53
commit 6b3c247d07
3 changed files with 8 additions and 3 deletions

View 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);