[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 09/15] Hurd signals: implement global signal dispositions
From: |
Jeremie Koenig |
Subject: |
Re: [PATCH 09/15] Hurd signals: implement global signal dispositions |
Date: |
Wed, 20 Jul 2011 02:51:59 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
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