mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:37:34 +00:00
Kernel: Don't assert when reading from a listening-mode local socket
Instead just fail with EINVAL as a listening socket is never suitable for reading from. Fixes #4511.
This commit is contained in:
parent
80ae407d73
commit
c6a0694f50
2 changed files with 21 additions and 16 deletions
|
@ -72,8 +72,8 @@ private:
|
|||
virtual bool is_local() const override { return true; }
|
||||
bool has_attached_peer(const FileDescription&) const;
|
||||
static Lockable<InlineLinkedList<LocalSocket>>& all_sockets();
|
||||
DoubleBuffer& receive_buffer_for(FileDescription&);
|
||||
DoubleBuffer& send_buffer_for(FileDescription&);
|
||||
DoubleBuffer* receive_buffer_for(FileDescription&);
|
||||
DoubleBuffer* send_buffer_for(FileDescription&);
|
||||
NonnullRefPtrVector<FileDescription>& sendfd_queue_for(const FileDescription&);
|
||||
NonnullRefPtrVector<FileDescription>& recvfd_queue_for(const FileDescription&);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue