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-Thread: 103376,2dd7b69b3c782182 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Martin Dowie" Newsgroups: comp.lang.ada Subject: Re: Catching Ctrl-C SIGINT Date: Mon, 17 Jan 2005 14:19:51 -0000 Organization: BAE SYSTEMS Message-ID: <41ebc7fc_1@baen1673807.greenlnk.net> References: X-Trace: individual.net EglF4qFjqcxCvYuSqtapegUrB+HqC5W9Z2AwAb0e+ItOXqflGU X-Orig-Path: baen1673807.greenlnk.net!baen1673807!not-for-mail X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 X-Original-NNTP-Posting-Host: baen1673807.greenlnk.net Xref: g2news1.google.com comp.lang.ada:7869 Date: 2005-01-17T14:19:51+00:00 List-Id: Christopher Broeg wrote: [snip] > Here the problem: > I do get the message > "Interrupt SIGINT caught. sending signal " > but the signal_public procedure never manages to send the signal. I > don't know why. If I call the signal_public procedure from test1 it > works, but is of course useless. > > Can you give me any hints on what I am doing wrong? I am lost. > > Maybe there is a better way to react upon the interrupt? But still I > am wondering why my solution is not working. Not a good idea to call "Put_Line" from a protected object as it is a (potentially blocking call). Take out the "Put_Lines" and increment an unprotected unsigned integer instead and from within a task poll say @1Hz and look for the integer changing - i.e. try an look for a side-effect of the protected object doing its job. You can always remove this task once you're convinced all is ok. Cheers -- Martin