Kill sockets when process crashes.
git-svn-id: svn://kolibrios.org@3145 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
949b920321
commit
9e043be92f
|
@ -154,7 +154,13 @@ exc_c: ;
|
|||
sti
|
||||
; not debuggee => say error and terminate
|
||||
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
|
||||
jmp change_task ; stack - here it does not matter at all, SEE: core/shed.inc
|
||||
.debug:
|
||||
|
|
Loading…
Reference in New Issue