comp.lang.ada
 help / color / mirror / Atom feed
From: Thierry Pirot <thierrypirot@skynet.be>
Subject: Re: problem with ada.interrupts
Date: 25 Aug 2005 14:25:11 +0200
Date: 2005-08-25T14:25:11+02:00	[thread overview]
Message-ID: <83pss2nqzc.fsf@skynet.be> (raw)
In-Reply-To: 1123689689.517640.262600@z14g2000cwz.googlegroups.com

> with
>   Ada.Interrupts,
>   Ada.Interrupts.Names,
>   Ada.Text_Io;
> 
> procedure Test is
> 
>    protected Interruption_Handler is
>       procedure SIGINT_Handler;
>    end Interruption_Handler;
>    protected body Interruption_Handler is
>       procedure SIGINT_Handler is
>       begin
>          Ada.Text_Io.Put_Line("interruption");
>       end;
>    end Interruption_Handler;
> 
> begin
> 
> Ada.Interrupts.Attach_Handler(Interruption_Handler.SIGINT_Handler'Access,
>                                  Ada.Interrupts.Names.SIGINT);
>    Ada.Text_Io.Put_Line("ok");
>    delay 5.0;
> end;
> 
> 
> this compiles fine, but when i launch it, nothing happens (not even the
> put_line("ok")).
> it seems that even this little program does not terminate :
> 
> with
>   Ada.Interrupts;
> 
> procedure Test is
> begin
>    null:
> end;

(My two cents) 
How did you launch it ?  Maybe you forgot "test" is an internal shell command. 
What about 
./test
which test
help test
-- 
   Take it Easy          Don't worry            Be Happy

                           Thierry

�������o�o��������o�o��������o�o��������o�o��������o�o�������



      parent reply	other threads:[~2005-08-25 12:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-10 16:01 problem with ada.interrupts evangeli
2005-08-10 18:00 ` Robert A Duff
2005-08-10 18:19 ` jimmaureenrogers
2005-08-25 12:25 ` Thierry Pirot [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox