Subject: Re: SIGTRAP for traced processes and COMPAT_MACH
To: Emmanuel Dreyfus <manu@netbsd.org>
From: Jaromir Dolecek <jdolecek@netbsd.org>
List: tech-kern
Date: 11/26/2003 09:22:45
Emmanuel Dreyfus wrote:
> Jaromir Dolecek <jdolecek@NetBSD.org> wrote:
>
> > I guess overriding sendsig hook is better solution.
>
> If I do this, I will not send Mach exceptions for masked signals, which
> would not be an accurate emulation.
You mean that MacOS sends the trap exception to process even when
the signal is blocked? Are you sure about that?
Another solution would be to hack something using EVFILT_SIGNAL
kevent - signal kevents are generated even for blocked signals.
Jaromir
--
Jaromir Dolecek <jdolecek@NetBSD.org> http://www.NetBSD.cz/
-=- We should be mindful of the potential goal, but as the Buddhist -=-
-=- masters say, ``You may notice during meditation that you -=-
-=- sometimes levitate or glow. Do not let this distract you.'' -=-