1
Fork 0
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:
Andreas Kling 2019-02-17 09:40:52 +01:00
parent a0b55987d3
commit df2d46d5dc
3 changed files with 17 additions and 2 deletions

View file

@ -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;
}