vfs: 'Rtc_file_system::close' for watch handle

The default implementation of this method throws an exception.
This commit is contained in:
Norman Feske 2019-10-11 08:31:44 +02:00 committed by Christian Helmuth
parent 7549189f88
commit e9762ee25f
1 changed files with 6 additions and 0 deletions

View File

@ -157,6 +157,12 @@ class Vfs::Rtc_file_system : public Single_file_system
catch (Genode::Out_of_ram) { return WATCH_ERR_OUT_OF_RAM; }
catch (Genode::Out_of_caps) { return WATCH_ERR_OUT_OF_CAPS; }
}
void close(Vfs_watch_handle *handle) override
{
Genode::destroy(handle->alloc(),
static_cast<Registered_watch_handle *>(handle));
}
};
#endif /* _INCLUDE__VFS__RTC_FILE_SYSTEM_H_ */