From 18d1174514f26d9a6e343486338f859307cda5d0 Mon Sep 17 00:00:00 2001 From: superturbocat2001 Date: Sat, 5 Dec 2020 15:50:32 +0000 Subject: [PATCH] Added a mechanism for closing the parent process git-svn-id: svn://kolibrios.org@8328 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/develop/libraries/console_coff/console.asm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/programs/develop/libraries/console_coff/console.asm b/programs/develop/libraries/console_coff/console.asm index 2798211e3a..8df8c33091 100644 --- a/programs/develop/libraries/console_coff/console.asm +++ b/programs/develop/libraries/console_coff/console.asm @@ -7,7 +7,6 @@ format MS COFF public EXPORTS section '.flat' code readable align 16 - include 'font.inc' include 'conscrl.inc' @@ -1882,6 +1881,12 @@ con.msg_loop: jmp con.mouse con.button: ; we have only one button, close + mov eax, 18 + mov ebx, 18 + mov ecx,[process_info_buffer+30] + dec ecx + int 0x40 ; kill parent process + con.thread_exit: or byte [con_flags+1], 2 and [con.console_tid], 0