Kill sockets when process crashes.

git-svn-id: svn://kolibrios.org@3145 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
hidnplayr 2012-12-30 10:06:53 +00:00
parent 949b920321
commit 9e043be92f

View File

@ -154,7 +154,13 @@ exc_c: ;
sti sti
; not debuggee => say error and terminate ; not debuggee => say error and terminate
call show_error_parameters ;; only ONE using, inline ??? call show_error_parameters ;; only ONE using, inline ???
;mov edx, [TASK_BASE]
; kill open sockets
pusha
mov edx, [edx + TASKDATA.pid]
call SOCKET_process_end
popa
mov [edx + TASKDATA.state], byte 4 ; terminate mov [edx + TASKDATA.state], byte 4 ; terminate
jmp change_task ; stack - here it does not matter at all, SEE: core/shed.inc jmp change_task ; stack - here it does not matter at all, SEE: core/shed.inc
.debug: .debug: