Article View: comp.os.os2.programmer
Article #217Ignoring Ctrl-C Signals?
From: John Burnell
Date: Tue, 04 Aug 1992 09:11
Date: Tue, 04 Aug 1992 09:11
16 lines
1133 bytes
1133 bytes
Has anyone worked out how to ignore the Ctrl-C signal exception. I have some programs that I wrote for v1.3, where I want to receive Ctrl-C from the keyboard. Under 1.3 this was easy, I just called DosSetSignalHandler with NULL for the new handler, and IGNORE for the signals that I was interested in. I see that DosSetSignalHandler is not part of v2.0 (except as a 16 bit call as are the Vio, Kbd etc, which is no use to me since I don't have C Set/2). And the signal handlers has been replaced by Exceptions. If someone has already worked out how to ignore a Signal Exception, then this would save me having to sort all this out for myself (and probably get it wrong). Thanks in advance for any help John Burnell
Technical Details
Message-ID:
<JOHNB.92Aug4091140@tara.am.dsir.govt.nz>Path:
arc1-ca.pugleaf.net!sparky!uunet!comp.vuw.ac.nz!am.dsir.govt.nz!johnbShow Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!comp.vuw.ac.nz!am.dsir.govt.nz!johnb From: johnb@am.dsir.govt.nz (John Burnell) Subject: Ignoring Ctrl-C Signals? Message-ID: <JOHNB.92Aug4091140@tara.am.dsir.govt.nz> Sender: news@am.dsir.govt.nz Organization: Dept. of Scientific and Industrial Research, NZ. Distribution: comp.os.os2.programmer Date: 4 Aug 92 09:11:40 Lines: 16