[fpc-devel]SIGALRM?
Marco van de Voort
marcov at stack.nl
Wed Feb 21 23:05:51 CET 2001
> fd_Set(0,fdsin);
> InputPending:=(Select(1, at fdsin,nil,nil,nil)>0);
> end;
>
> Procedure Delay(DTime: Word);
> Begin
> Select(0,nil,nil,nil,DTime);
> End;
>
>
> The program works right, but there is a problem. Randomly, some time after
> the program is running, it receives a SIGALRM from the system and it ends. I
> solved it by trapping this signal, but... anybody knows why it signal is
> generated?
I'm no guru, but do you sometimes don't call inputpending for a while, or
read from stdin?
Then maybe some internal buffer could overflow if people are still typing?
More information about the fpc-devel
mailing list