4

Do signal handlers have a separate stack, (like each thread have separate stacks)?

This is in Linux/C context.

Lunar Mushrooms
  • 8,358
  • 18
  • 66
  • 88

1 Answers1

8

From the Linux manual page signal(7):

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.
Some programmer dude
  • 400,186
  • 35
  • 402
  • 621