Subj : Threads and signals To : comp.programming.threads From : Marcin 'Qrczak' Kowalczyk Date : Fri Jan 14 2005 02:52 pm When a signal is sent to a process by kill(), or is generated by setitimer(), which thread handles it? I couldn't find it in SUSv3. On Linux with NPTL only the main thread seems to receive it. sigprocmask must be used only in single-threaded programs, right? But pthread_sigmask brings a dependency on pthreads. Does it mean that it's impossible to write code which blocks signals temporarily, doesn't create a dependency on pthreads, but if it's linked with another library which uses pthreads then they still work? -- __("< Marcin Kowalczyk \__/ qrczak@knm.org.pl ^^ http://qrnik.knm.org.pl/~qrczak/ .