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 Subject: Re: PMCOM & signals To: djgpp AT delorie DOT com In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 Precedence: bulk --- Eli Zaretskii 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