forked from KolibriOS/kolibrios
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:
parent
a03882245a
commit
18d1174514
@ -7,7 +7,6 @@ format MS COFF
|
|||||||
public EXPORTS
|
public EXPORTS
|
||||||
|
|
||||||
section '.flat' code readable align 16
|
section '.flat' code readable align 16
|
||||||
|
|
||||||
include 'font.inc'
|
include 'font.inc'
|
||||||
include 'conscrl.inc'
|
include 'conscrl.inc'
|
||||||
|
|
||||||
@ -1882,6 +1881,12 @@ con.msg_loop:
|
|||||||
jmp con.mouse
|
jmp con.mouse
|
||||||
con.button:
|
con.button:
|
||||||
; we have only one button, close
|
; 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:
|
con.thread_exit:
|
||||||
or byte [con_flags+1], 2
|
or byte [con_flags+1], 2
|
||||||
and [con.console_tid], 0
|
and [con.console_tid], 0
|
||||||
|
Loading…
Reference in New Issue
Block a user