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 <j...@jk.fr.eu.org> http://jk.fr.eu.org