Changed SOCKET_accept to bind the new socket to the active thread. (net branch)

git-svn-id: svn://kolibrios.org@2572 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
hidnplayr 2012-04-05 13:52:26 +00:00
parent 843b584cd7
commit a268aaffd6

View File

@ -625,8 +625,13 @@ SOCKET_accept:
jne s_error
get_from_queue (eax + SOCKET_QUEUE_LOCATION), MAX_backlog, 4, s_error
mov eax, [esi]
; Change PID to that of the current process
mov ebx, [TASK_BASE]
mov ebx, [ebx + TASKDATA.pid]
mov [eax + SOCKET.PID], ebx
call SOCKET_ptr_to_num
jz s_error
mov [esp+32], eax