[fpc-pascal]Problems with setitimer....
jueca at brturbo.com
Fri Nov 22 01:20:16 CET 2002
On Thu, 21 Nov 2002 03:19:26 +0100
Anton Tichawa <anton.tichawa at chello.at> wrote:
> i enclose some procedures i currently use for setitimer / getitimer. they do
It worked for me, and now I'm happy :)
Thank you very much.
> i briefly looked at your code and found 2 possible problems:
> 1) maybe it's better to use 'sigaction' instead of 'signal'
Yes and No, using SigAction it works fine, using signal, it works, but only 2
times, giving me an "Alarm Clock" and terminating my program.
> 2) i don't know if it's allowed to do file i/o (WriteLn) within the signal
Under Unix point of view, what else (useful) can I do?
Well, I'll only put a new event in X Event Queue, so my main block wich is
blocked waiting X Events, will process this event ;)
More information about the fpc-pascal