delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1997/09/03/04:17:31

Message-Id: <199709030815.EAA09996@delorie.com>
From: Oberhumer Markus <k3040e4 AT c210 DOT edvz DOT uni-linz DOT ac DOT at>
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: <Pine.SUN.3.91.970902191318.22592K-100000@is> 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

> > 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 ?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019