The handler is called with two arguments: the signal number and the stack.