Added a mechanism for closing the parent process

git-svn-id: svn://kolibrios.org@8328 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
superturbocat2001 2020-12-05 15:50:32 +00:00
parent a03882245a
commit 18d1174514

View File

@ -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