forked from Bananymous/banan-os
Kernel: Close unix domain socket when it gets destoyed
Inode closing is something that needs a complete rework. Currently all sockets are closed when close() is called, which leads to connection closing if you fork()/exec() with socket being marked as CLOEXEC. Inodes should probably only be closed once they are not referenced anywhere.
This commit is contained in:
parent
843a6851c4
commit
530c259e71
|
@ -33,6 +33,7 @@ namespace Kernel
|
|||
|
||||
private:
|
||||
UnixDomainSocket(SocketType, ino_t, const TmpInodeInfo&);
|
||||
~UnixDomainSocket() { on_close_impl(); }
|
||||
|
||||
BAN::ErrorOr<void> add_packet(BAN::ConstByteSpan);
|
||||
|
||||
|
|
Loading…
Reference in New Issue