This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: get/set/swapcontext + linuxthreads/glibc + MTasker
- From: Roland McGrath <roland at redhat dot com>
- To: Ulrich Drepper <drepper at redhat dot com>
- Cc: bert hubert <ahu at ds9a dot nl>, libc-alpha at sources dot redhat dot com,phil-list at redhat dot com
- Date: Fri, 17 Jan 2003 13:05:06 -0800
- Subject: Re: get/set/swapcontext + linuxthreads/glibc + MTasker
> Don't use sigaltstack in multi-threaded programs. Just think a second
> about the desasters which would happen if two signals arrive at the same
> time and are handled by different threads.
You can use sigaltstack for each thread with N separate signal stacks.