Question regarding proc.p_procsig
rjh at who.net
Fri Jan 14 01:34:45 PST 2005
User Joerg wrote:
On Thu, Jan 13, 2005 at 10:03:27PM +0100, Roland Hammerle wrote:
So I was wondering if the following code is even supposed to work in
struct kinfo_proc *pinfo;
#define PROC_SIGIGNORE kp_proc.p_sigignore
buf->sigignore  = pinfo .PROC_SIGIGNORE.__bits;
where p_sigignore is p_procsig->ps_sigignore.
Nope, this is wrong. And I won't tell you how to fix it, because it will
break in the foreseeable future again :)
Too bad then... but after tinkering around a little more I figured it
out myself and it works* - at least until it gets changed again.
*It compiles and runs without signal 10.
More information about the Kernel