From 32323abe8e396742fd44d8c01ded881597bb8452 Mon Sep 17 00:00:00 2001 From: Alexander Boettcher Date: Mon, 19 Aug 2019 14:45:03 +0200 Subject: [PATCH] vfs: handle unsupported watch exception --- repos/os/src/lib/vfs/fs_file_system.h | 1 + 1 file changed, 1 insertion(+) diff --git a/repos/os/src/lib/vfs/fs_file_system.h b/repos/os/src/lib/vfs/fs_file_system.h index 6c1fb8bf8..8e38b8b92 100644 --- a/repos/os/src/lib/vfs/fs_file_system.h +++ b/repos/os/src/lib/vfs/fs_file_system.h @@ -866,6 +866,7 @@ class Vfs::Fs_file_system : public File_system ::File_system::Watch_handle fs_handle { -1U }; try { fs_handle = _fs.watch(path); } + catch (Unavailable) { return WATCH_ERR_UNACCESSIBLE; } catch (Lookup_failed) { return WATCH_ERR_UNACCESSIBLE; } catch (Permission_denied) { return WATCH_ERR_STATIC; } catch (Out_of_ram) { return WATCH_ERR_OUT_OF_RAM; }