Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#1401 closed bug (fixed)

implement sigaltstack()

Reported by: korli Owned by: axeld
Priority: normal Milestone: R1
Component: System/Kernel Version: R1/pre-alpha1
Keywords: Cc:
Blocked By: Blocking:
Platform: All


The most common usage of an alternate signal stack is to handle the SIGSEGV signal that is generated if the space available for the normal process stack is exhausted: in this case, a signal handler for SIGSEGV cannot be invoked on the process stack; if we wish to handle it, we must use an alternate signal stack.

Note that BeOS R5 provides set_signal_stack(). Something should be done about it too.

Change History (3)

comment:1 by axeld, 13 years ago

Component: System/libroot.soSystem/Kernel
Status: newassigned

comment:2 by axeld, 13 years ago

Resolution: fixed
Status: assignedclosed

Fixed in hrev21989.

comment:3 by axeld, 13 years ago

Note that currently, set_signal_stack() is not really BeOS compatible: it will actually only use that new stack for all signals that have the SA_ONSTACK flag set - and it seems this just didn't exist on BeOS.

Note: See TracTickets for help on using tickets.