delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/05/22/12:26:03

Date: Wed, 22 May 1996 19:11:34 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Shawn Hargreaves <slh100 AT york DOT ac DOT uk>
Cc: djgpp AT delorie DOT com
Subject: Re: Ctrl-C arg
In-Reply-To: <Pine.SGI.3.91.960520151505.15841B-100000@tower.york.ac.uk>
Message-Id: <Pine.SUN.3.91.960522190247.2226C-100000@is>
Mime-Version: 1.0

On Mon, 20 May 1996, Shawn Hargreaves wrote:

> On a related note, I can't get setcbrk() to do anything. My understanding 
> is that calling setcbrk(0) should prevent ctrl+break from killing my 
> program off, but it doesn't work...

The on-line docs clearly says that this function determines C-Break 
checking flag in MS-DOS.
              ^^^^^^^^^
That flag merely interrupts DOS operations (like disk I/O or character
device I/O), but doesn't abort your program.  If you want to control
whether your program is interrupted by C-Break, write
signal(SIGINT, SIG_IGN), as God intended.

- Raw text -


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