[Ecls-list] Patch: remove sbrk() usage in handle_signal()
Juan Jose Garcia-Ripoll
juanjose.garciaripoll at googlemail.com
Sat Oct 4 19:28:01 UTC 2008
On Sat, Oct 4, 2008 at 9:16 PM, Josh Elsasser <josh at elsasser.org> wrote:
> The new stack overflow detection code uses sbrk(), which is not
> portable. I'm guessing that it was used to detect if the signal
> handler was executing on the alternate signal stack, if that is the
> case then sigaltstack() would be the portable way to test for that.
Hmmm, I am not sure sigaltstack() does what you are expecting. The
SIGSEGV signal handler will _always_ execute in the alternative stack
and hence your test will always be true.
Juanjo
--
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28009 (Spain)
http://juanjose.garciaripoll.googlepages.com
More information about the ecl-devel
mailing list