www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/05/22/12:14:16

Date: Wed, 22 May 1996 19:02:37 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Charles Sandmann <sandmann AT clio DOT rice DOT edu>
Cc: djgpp AT delorie DOT com
Subject: Re: Ctrl-C arg
In-Reply-To: <31a1005d.sandmann@clio.rice.edu>
Message-Id: <Pine.SUN.3.91.960522185810.2226B-100000@is>
Mime-Version: 1.0

On Mon, 20 May 1996, Charles Sandmann wrote:

> > __djgpp_set_ctrl_c(0);
> > function doesn't seem to be documented anywhere: does anyone know why 
> > not? Is there some reason why I shouldn't be using it?
> 
> It's an internal function which I didn't expect to be called by the users.
> In the UNIX world to supress CTRL-C interrupts you would SIG_IGN SIGINT,

The problem is that setting SIGINT to SIG_IGN also suppresses signals
generated by Ctrl-Break.  Also, if you switch stdin to binary mode, Ctrl-C
stops generating SIGINT even if you don't want to ignore SIGINT.  So
`__djgpp_set_ctrl_c' is most useful in re-enabling SIGINT after switching
stdin to binary, or selectively disabling only Ctrl-C but not Ctrl-Break. 
Which is why it *will* be documented in the next release of DJGPP. 

- Raw text -


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