From c708a28eff8be18e3036a13fb5d420b5d8b3a075 Mon Sep 17 00:00:00 2001 From: Christian Prochaska Date: Fri, 27 Jul 2012 12:27:36 +0200 Subject: [PATCH] ffat_fs: don't throw exception in 'close()' The 'close()' function is not supposed to throw any exceptions. Fixes #304. --- libports/src/server/ffat_fs/main.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libports/src/server/ffat_fs/main.cc b/libports/src/server/ffat_fs/main.cc index d8d9542d3..b380a71ab 100644 --- a/libports/src/server/ffat_fs/main.cc +++ b/libports/src/server/ffat_fs/main.cc @@ -538,7 +538,8 @@ namespace File_system { try { node = _handle_registry.lookup(handle); } catch(Invalid_handle) { - throw Lookup_failed(); + PERR("close() called with invalid handle"); + return; } PDBGV("name = %s", node->name());