1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 12:48:10 +00:00

Kernel: Make Inode::register_watcher() OOM-fallible

This commit is contained in:
Idan Horowitz 2022-01-25 15:13:59 +02:00
parent 87bd930e7e
commit a9cd8ca841
3 changed files with 14 additions and 7 deletions

View file

@ -91,7 +91,7 @@ public:
bool has_watchers() const { return !m_watchers.is_empty(); }
void register_watcher(Badge<InodeWatcher>, InodeWatcher&);
ErrorOr<void> register_watcher(Badge<InodeWatcher>, InodeWatcher&);
void unregister_watcher(Badge<InodeWatcher>, InodeWatcher&);
ErrorOr<NonnullRefPtr<FIFO>> fifo();