From 075c0ea71a50e2c6c8727bf36f090360203a6cd4 Mon Sep 17 00:00:00 2001 From: "Sergey Semyonov (Serge)" Date: Fri, 9 Feb 2007 17:48:56 +0000 Subject: [PATCH] patch for terminate() git-svn-id: svn://kolibrios.org@334 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/core/sys32.inc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/kernel/trunk/core/sys32.inc b/kernel/trunk/core/sys32.inc index 85ad199069..a14badd44b 100644 --- a/kernel/trunk/core/sys32.inc +++ b/kernel/trunk/core/sys32.inc @@ -581,6 +581,13 @@ terminate: ; terminate application .slot equ esp ;locals push esi ;save .slot + + shl esi, 8 + cmp [PROC_BASE+esi+APPDATA.dir_table], 0 + jne @F + add esp, 4 + ret +@@: mov esi,process_terminating call sys_msg_board_str @@: @@ -598,6 +605,9 @@ term9: add esi, PROC_BASE+APP_OBJ_OFFSET @@: mov eax, [esi+APPOBJ.fd] + test eax, eax + jz @F + cmp eax, esi je @F