This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 09/15] Hurd signals: implement global signal dispositions


On Wed, Jul 06, 2011 at 01:09:27AM +0200, Samuel Thibault wrote:
> Jeremie Koenig, le Tue 05 Jul 2011 05:15:28 +0200, a écrit :
> > I was worried about a case where the user would install a minuscule
> > stack, sufficient for their own handler, but not for a preemptor's one.
> 
> I believe the user is not supposed to know how much the kernel & libc
> will need on the stack to handle signals.

As a sidenote, I beleive a similar problem can happen with SA_RESETHAND,
for instance with sigwait() unexpectedly SIG_DFL'ing a handler which did
not actually run.

Generally speaking I feel that preemptors should specify full sigaction
structures rather than mere handlers.

-- 
Jeremie Koenig <jk@jk.fr.eu.org>
http://jk.fr.eu.org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]