Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Mar 2005 01:39:40 +0000
From:      Joseph Koshy <joseph.koshy@gmail.com>
To:        Aziz KEZZOU <opensource.enthousiat@gmail.com>
Cc:        John-Mark Gurney <gurney_j@resnet.uoregon.edu>
Subject:   Re: How to send a signal from inside the kernel?
Message-ID:  <84dead720503171739aa1ad0e@mail.gmail.com>
In-Reply-To: <37e1316605031711555c47c8ca@mail.gmail.com>
References:  <37e13166050317093477de8f7a@mail.gmail.com> <20050317181200.GK89312@funkthat.com> <37e1316605031711555c47c8ca@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> Here are the headers needed in case someone reads this thread:
> 
> #include <unistd.h> /*needed only for NULL, can be removed*/
> #include <sys/types.h>
> #include <sys/param.h>
> #include <sys/lock.h>
> #include <sys/mutex.h>
> #include <sys/proc.h>

According to the manual page for psignal(9) in -current, you 
only need <sys/types.h> and <sys/signalvar.h>.

You need to hold the PROC lock for the target process before 
invoking psignal().

-- 
FreeBSD Volunteer, http://people.freebsd.org/~jkoshy



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?84dead720503171739aa1ad0e>