mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-26 10:24:50 +00:00
Kernel: Add SocketRole::Listener and report the role nicely in /proc/PID/fds.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user