mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 23:18:21 +00:00
accept: assign SOCKET_STATE_CONNECTED to the peer
This commit is contained in:
@@ -77,8 +77,10 @@ syscallret syscall_accept(int sockfd, void* addr, size_t* addrlen){
|
||||
|
||||
peer->peer = connsock;
|
||||
|
||||
peer->state = SOCKET_STATE_CONNECTED;
|
||||
event_signal(&peer->acceptevent, true);
|
||||
|
||||
|
||||
spinlock_release(&peer->lock);
|
||||
|
||||
fd_release(fd);
|
||||
|
||||
Reference in New Issue
Block a user