Newsgroups: comp.os.msdos.djgpp From: "Mike Ruskai" Message-ID: References: X-Newsreader: PMINews 2.00.1205 For OS/2 Organization: TLF MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Subject: Re: SIGINT handling with CTRL-C Lines: 33 Date: Tue, 02 Mar 1999 20:00:28 GMT NNTP-Posting-Host: 24.3.130.120 X-Complaints-To: abuse AT home DOT net X-Trace: news.rdc1.nj.home.com 920404828 24.3.130.120 (Tue, 02 Mar 1999 12:00:28 PDT) NNTP-Posting-Date: Tue, 02 Mar 1999 12:00:28 PDT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Tue, 2 Mar 1999 18:09:25 +0200 (IST), Eli Zaretskii wrote: > >On Mon, 1 Mar 1999, Mike Ruskai wrote: > >> I've set up a handler with signal(), and tried calling __djgpp_set_ctrl_c() >> both before and after it. > >For starters, I don't understand why did you need to call >__djgpp_set_ctrl_c at all. The SIGINT handler should have been called >without it. I added it because that wasn't the case. >> But CTRL-C still results in an immediate end to the program, without going to >> the SIGINT handler. > >On what operating system? DOS? Windows 3.X? Windows 9X? Windows NT? >Linux/DOSEmu? Your question prompted me to test, and it appears to only fail in an OS/2 VDM. Under Win95, the ^C is displayed, but the handler does execute. Same under PC-DOS 7 with CWSDPMI. Since I have an OS/2 native version of the program, functionality there isn't critical. -- - Mike Remove 'spambegone' to send e-mail.