Date: Sun, 19 Jul 1998 12:25:37 +0300 (IDT) From: Eli Zaretskii To: Steve Ball cc: djgpp AT delorie DOT com Subject: Re: longjmp() from interrupt handler In-Reply-To: <6omtlb$9gs$1@wolfman.xtra.co.nz> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Fri, 17 Jul 1998, Steve Ball wrote: > Josh Turpen, the author of the LWP multi-threading library, has suggested > using an illegal instruction trap to recover. This sounds like a promising > idea. Even better would be to use the threading library and just run the > call in a separate thread. I'll be looking into this... I'm not sure if it > will work with PMODE/DJ. The second way will not work, since once you issue a call to a real-mode interrupt function, threading stops until that call returns. The first way will probably not work either, since in DJGPP it generates a signal, and signals are only delivered when your program is back in protected mode. At the most, it will crash your program.