mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:38:11 +00:00
Kernel: Give each FileDescriptor a chance to co-open sockets.
Track how many fds are open for a socket's Accepted and Connected roles. This allows fork() to clone a socket fd without a subsequent close() walking all over the parent process's fd.
This commit is contained in:
parent
b0be3299b5
commit
d5f515cf6c
6 changed files with 51 additions and 27 deletions
|
@ -86,7 +86,7 @@ public:
|
|||
|
||||
void set_original_inode(Badge<VFS>, RetainPtr<Inode>&& inode) { m_inode = move(inode); }
|
||||
|
||||
void set_socket_role(SocketRole role) { m_socket_role = role; }
|
||||
void set_socket_role(SocketRole);
|
||||
|
||||
private:
|
||||
friend class VFS;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue