From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,11a62e323672426b X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-28 15:19:45 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.uchicago.edu!newsswitch.lcs.mit.edu!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: GNAT bending signal handlers Date: 28 May 2003 18:19:43 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <6a6390b8.0305120129.24683c2b@posting.google.com> <3EBFDAB9.441F858D@raytheon.com> <6a6390b8.0305130305.13dfc423@posting.google.com> <6a6390b8.0305140439.61b00850@posting.google.com> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls4.std.com 1054160383 21180 199.172.62.241 (28 May 2003 22:19:43 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Wed, 28 May 2003 22:19:43 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:37952 Date: 2003-05-28T18:19:43-04:00 List-Id: okellogg@freenet.de (Oliver Kellogg) writes: > Robert A Duff wrote in message news:... > > > > GNAT supports a pragma Unreserve_All_Interrupts, which I found to be > > necessary when I wanted to handle SIGINT. I don't know if that's > > related to your problem... > > Great! That did the trick. > > Many thanks. You're welcome. I've wondered whether the whole idea of "reserved interrupts" makes sense. I mean, why should the RM *require* the implementation to raise exceptions when the user hooks a reserved interrupt? Interrupts are inherently implementation dependent anyway. It seems to me, if the user wants to hook the timer interrupt, the user should be allowed to do so. Maybe that means that delay statements don't work, but so what? Maybe the user doesn't have any delay statements. If you're handling interrupts, you have to know what you're doing. You have to know what they mean on your implementation, and you have to know about any interactions with your compiler's run-time system. - Bob