www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/12/09/21:37:55

Date: Fri, 9 Dec 1994 11:24:49 -0500
From: Marc Feeley <feeley AT IRO DOT UMontreal DOT CA>
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Handling Ctrl-C interrupts

Hi, I'm new to this list so please excuse me if this has already been
answered before.

I would like to catch "ctrl-c" interrupts so that the program does
not terminate abruptly.  I can catch "ctrl-break" but can't figure out
how to do it for "ctrl-c".

Also, is there a way for "ctrl-c" interrupts (or "ctrl-break") to
abort the current call to "fread"?  I would like a behavior similar
to the one gotten with UNIX's "sigaction" routine, when specifying
SA_INTERRUPT in the sa_flags field.

Marc

- Raw text -


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