> 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.