Kernel: Cleanup and fix pipe

pipe now sends SIGPIPE and returns EPIPE when writing and no readers are
open
This commit is contained in:
2025-05-29 01:02:22 +03:00
parent 37dea8aee7
commit 4d4fb3b6ec
4 changed files with 58 additions and 41 deletions

View File

@@ -133,6 +133,9 @@ namespace Kernel
void del_epoll(class Epoll*);
void epoll_notify(uint32_t event);
virtual void on_close(int status_flags) { (void)status_flags; }
virtual void on_clone(int status_flags) { (void)status_flags; }
protected:
// Directory API
virtual BAN::ErrorOr<BAN::RefPtr<Inode>> find_inode_impl(BAN::StringView) { return BAN::Error::from_errno(ENOTSUP); }