Message-Id: <199709030815.EAA09996@delorie.com> From: Oberhumer Markus Subject: Re: stdin binmode + Ctrl-Break To: eliz AT is DOT elta DOT co DOT il (Eli Zaretskii) Date: Wed, 3 Sep 1997 10:10:00 +0200 (METDST) Cc: k3040e4 AT c210 DOT edvz DOT uni-linz DOT ac DOT at, djgpp-workers AT delorie DOT com In-Reply-To: from "Eli Zaretskii" at Sep 2, 97 07:17:02 pm Return-Read-To: markus DOT oberhumer AT jk DOT uni-linz DOT ac DOT at Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk > > But for some reason Ctrl-Break doesn't work either, so if I > > forget to redirect stdin on the command line I have to reboot ! > > > > Am I missing something ? > > You forget that signal handling is delayed until your app is back in > protected mode and in its main thread. Since your program is parked > inside a real-mode DOS call (that reads from stdin), you never get to > handle the signal. But I can reenable Ctrl-C with __djgpp_set_ctrl_c (or similiar) - and then I can interrupt the program. Why doesn't this work with Ctrl-Break ?