Do signal handlers have a separate stack?

Do signal handlers have a separate stack (for example, each thread has separate stacks)?

This is in the context of Linux / C.

+4
source share
1 answer

On the Linux signal(7) manual page:

 By default, the signal handler is invoked on the normal process stack. It is possible to arrange that the signal handler uses an alternate stack; see sigaltstack(2) for a discussion of how to do this and when it might be useful. 
+8
source

Source: https://habr.com/ru/post/1381860/


All Articles