* Sven Luther:

> Yes, i use localtime / getoftime / time from the signal handler, yes, i guess
> that is causing the problem i m seeing. Need to find another way to find the
> time from a handler.

> maybe using the timer_create thingy, but it is also undocumented.

timer_gettime is async-signal-safe according to POSIX.  Perhaps
gettimeofday is as well, as a GNU extension.

Another option is to spawn a separate thread which handles all the
signals.  Then you aren't restricted to the small set of
async-signal-safe functions (and you can use third-party libraries as
well).  Most non-C programming environments use this approach.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to