mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
Kernel: Make Inode::register_watcher() OOM-fallible
This commit is contained in:
parent
87bd930e7e
commit
a9cd8ca841
Notes:
sideshowbarker
2024-07-17 20:12:21 +09:00
Author: https://github.com/IdanHo
Commit: a9cd8ca841
Pull-request: https://github.com/SerenityOS/serenity/pull/12128
Reviewed-by: https://github.com/bgianfo ✅
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