Mail Archives: djgpp/1999/03/02/16:22:58
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 -