Subj : Re: pthread_getspecific or __thread for signal handler? To : comp.programming.threads From : Joseph Seigh Date : Wed Feb 02 2005 07:05 am On Wed, 02 Feb 2005 12:32:31 +0100, Alexander Terekhov wrote: > > Ian Pilcher wrote: > [...] >> Can you suggest any way to access thread-specific data in a signal >> handler? > > Ensure that your signal handler(s) can't interrupt any async-signal- > UNsafe operation. Better yet, get rid of the whole damn async-signal > handling thing altogether. > Async safety isn't an issue if you don't use async unsafe functions in your signal handler. Signals happen whether you have an explicit signal handerl or not. You just have to be able to handle SIGINT. -- Joe Seigh .