diff --git a/kernel/branches/net/core/sys32.inc b/kernel/branches/net/core/sys32.inc index 67c539a721..b88fbb3fbd 100644 --- a/kernel/branches/net/core/sys32.inc +++ b/kernel/branches/net/core/sys32.inc @@ -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: