delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/02/16:22:58

Newsgroups: comp.os.msdos.djgpp
From: "Mike Ruskai" <thanny AT spambegone DOT home DOT com>
Message-ID: <gunaalubzrpbz.f7zgwr2.pminews@24.3.128.71>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 990302180708 DOT 2062N-100000 AT is>
X-Newsreader: PMINews 2.00.1205 For OS/2
Organization: TLF
MIME-Version: 1.0
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.


- Raw text -


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