[fpc-pascal] Re: timer_create on linux

Jonas Maebe jonas.maebe at elis.ugent.be
Wed Aug 10 14:34:36 CEST 2011


On 10 Aug 2011, at 14:24, Max Vlasov wrote:

> On Wed, Aug 10, 2011 at 1:18 PM, Max Vlasov <max.vlasov at gmail.com>  
> wrote:
>
>> I tried to implement linux timer with timer_create and signals, but  
>> an
>> exception always fired (External:SIGUSR1).
>>
> Hmm, it seems that it's not a 'wrong' exception, I executed the same  
> program
> from console and it worked. So there's a range of signals that is  
> 'wrong'
> for the debugger/ide and it stops catching them.

It's not considered as "wrong" by gdb. By default it simply catches  
all signals. If you type "cont" at that point, the program will  
continue execution and the signal will be delivered to the program.

> Can I somehow tell it to
> ignore some, for example 'SIG35'? I tried to add it to Language  
> exceptions
> ignore list as 'External: SIG35', 'External:SIG35' (without space),  
> SIG35.
> Nothing helped.

handle SIG35 nostop noprint pass


Jonas



More information about the fpc-pascal mailing list