Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 01 Jan 2004 23:24:03 +0800
From:      David Xu <davidxu@freebsd.org>
To:        Doug Rabson <dfr@nlsystems.com>
Cc:        arch@freebsd.org
Subject:   Re: sigaltstack with threads
Message-ID:  <3FF43B93.5060209@freebsd.org>
In-Reply-To: <1072537553.1143.19.camel@herring.nlsystems.com>
References:  <Pine.GSO.4.10.10312270942550.26078-100000@pcnet5.pcnet.com> <1072537553.1143.19.camel@herring.nlsystems.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Doug Rabson wrote:
> I think that if its supported at all in threaded programs, it must be
> per-thread state otherwise you can't prevent two different threads
> colliding on the same signal stack. I can't quite see how this maps to
> KSE/KSEG since I only have the most hazy model of that stuff in my head
> right now.
> 
> Anyway, I've worked around things by not setting SA_ONSTACK for the
> handlers that I want to run on the thread stack.
> 
> 
I have worked out a patch to support per-thread sigaltstack() state,
in most cases, it is just a literally replacement.

http://people.freebsd.org/~davidxu/kse/kern_sigaltstack.diffs

David Xu




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3FF43B93.5060209>