mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:08:12 +00:00
Kernel: Add SocketRole::Listener and report the role nicely in /proc/PID/fds.
This commit is contained in:
parent
a0b55987d3
commit
df2d46d5dc
3 changed files with 17 additions and 2 deletions
|
@ -2267,6 +2267,7 @@ int Process::sys$listen(int sockfd, int backlog)
|
|||
int error;
|
||||
if (!socket.listen(backlog, error))
|
||||
return error;
|
||||
descriptor->set_socket_role(SocketRole::Listener);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue