signal usage in Pthread
Dan Nelson
dnelson at allantgroup.com
Fri May 9 12:58:30 PDT 2003
In the last episode (May 09), misha said:
> I am trying to port a multithreaded application from Linux to
> FreeBSD; the application uses SIGUNUSED signal (because Linux threads
> utilize SIGUSR1 and 2 for themselves). I am considering replacing
> SIGUNUSED with SIGUSR1 but am concerned if FreeBSD threads aren't
> using them also.
>
> Does anyone know if either user-level threads ( gcc -Pthread) or
> kernel threads (gcc -kthread) use SIGUSR1 in a way that would
> preclude using it in the application?
libc_r (-pthread) uses SIGPROF for its scheduling signal, so you should
be safe. There hasn't been a -kthread option for a long time.
--
Dan Nelson
dnelson at allantgroup.com
More information about the freebsd-questions
mailing list