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:
parent
87bd930e7e
commit
a9cd8ca841
3 changed files with 14 additions and 7 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue