delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/01/14/07:42:26

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
Message-ID: <20020114124132.15365.qmail@web9103.mail.yahoo.com>
Date: Mon, 14 Jan 2002 04:41:32 -0800 (PST)
From: ROLAND <roland_asmann AT yahoo DOT com>
Subject: Re: PMCOM & signals
To: djgpp AT delorie DOT com
In-Reply-To: <Pine.SUN.3.91.1020114130744.15686B-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

--- Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> wrote:
> If you want to disable Ctrl-C's effect on the
> program's data selector, 
> this will do it:
> 
>    __djgpp_set_ctrl_c(0);

I don't want to fully ignore CTRL-C, because then I
cannot quit my program...
I just want to catch the interrupt with something
like: signal(SIGINT,int_handler), which handles my
interrupt (closing the COMPort and then quiting the
program). If I'm correct SIGINT is CTRL-C, right?
The problem is that the piece of code above, does not
work.
For some reason, when I press CTRL-C, my program
terminates immediately (or so I guess...) and Windows
complains about all kinds of references (mentioned in
an earlier thread).
I just want my program to exit without any errors when
I press CTRL-C and return to the bash.
At this moment when I try this, Windows does not only
terminate my program, it also kills bash!

Roland


__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

- Raw text -


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