Date: Sun, 30 Jan 2000 09:35:14 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: sam cc: djgpp AT delorie DOT com Subject: Re: How Do I catch a "printf interrupt" ? In-Reply-To: <389354F6.F725C6F1@connection.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: dj-admin AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Sat, 29 Jan 2000, sam wrote: > Are you saying that if parent redirects int 21 to itself and calls another > program, the startup code will redirect it back to dos? No, the DJGPP startup code doesn't play any tricks with Int 21h. For that matter, I don't recommend hooking Int 21h in a DJGPP program at all. It's tricky (requires real-mode callbacks, since Int 21h isn't reflected to protected mode, and real-mode callbacks are non-reentrant) and dangerous (since paging goes through Int 21h).