From 2b54761e28693f0030ac5784c70dcc305868f4b9 Mon Sep 17 00:00:00 2001 From: "E. C. Masloch" Date: Fri, 22 Aug 2025 16:31:46 +0200 Subject: [PATCH] entry.asm: allow critical error Abort on self-parented process Fixes #213 --- kernel/entry.asm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kernel/entry.asm b/kernel/entry.asm index 1785d69..b77f314 100644 --- a/kernel/entry.asm +++ b/kernel/entry.asm @@ -741,11 +741,16 @@ CritErrExit: ; Abort processing. ; CritErrAbort: +%if 0 mov ax,[_cu_psp] mov es,ax cmp ax,[es:PSP_PARENT] mov al,FAIL jz CritErrExit + ; ecm: This check is done by (E)DR-DOS, but not MS-DOS. + ; Therefore, disable it and terminate the self-parented + ; process here like any other. +%endif cli mov ax,word [_user_r+2] ;Get frame mov bp,word [_user_r]