From 9e043be92fc3534c4c3c1c5fc3e9947997ef25dc Mon Sep 17 00:00:00 2001 From: hidnplayr Date: Sun, 30 Dec 2012 10:06:53 +0000 Subject: [PATCH] Kill sockets when process crashes. git-svn-id: svn://kolibrios.org@3145 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/branches/net/core/sys32.inc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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: