From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 18 01:39:42 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1045716A4CE for ; Fri, 18 Mar 2005 01:39:42 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8F85543D2D for ; Fri, 18 Mar 2005 01:39:41 +0000 (GMT) (envelope-from joseph.koshy@gmail.com) Received: by rproxy.gmail.com with SMTP id j1so734268rnf for ; Thu, 17 Mar 2005 17:39:41 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=WvlrPZGBnGjeExWMjwDAsRbLfPmva4mOsHKYRezj5d0/5u6P/EIpuuuUfSyIwpDcZuuVE0Gi2WSXVBs+Uz+OBLc+SEvblUqW9vpjiQI1mhY3+dc6N8+7Fcn02exXepeO03FKomjvbwT1JNzSGqDW0B8vpwyXeG/WUF2XUn2TOIQ= Received: by 10.38.75.78 with SMTP id x78mr2288646rna; Thu, 17 Mar 2005 17:39:41 -0800 (PST) Received: by 10.38.209.22 with HTTP; Thu, 17 Mar 2005 17:39:40 -0800 (PST) Message-ID: <84dead720503171739aa1ad0e@mail.gmail.com> Date: Fri, 18 Mar 2005 01:39:40 +0000 From: Joseph Koshy To: Aziz KEZZOU In-Reply-To: <37e1316605031711555c47c8ca@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit References: <37e13166050317093477de8f7a@mail.gmail.com> <20050317181200.GK89312@funkthat.com> <37e1316605031711555c47c8ca@mail.gmail.com> cc: freebsd-hackers@freebsd.org cc: John-Mark Gurney Subject: Re: How to send a signal from inside the kernel? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Joseph Koshy List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Mar 2005 01:39:42 -0000 > Here are the headers needed in case someone reads this thread: > > #include /*needed only for NULL, can be removed*/ > #include > #include > #include > #include > #include According to the manual page for psignal(9) in -current, you only need and . You need to hold the PROC lock for the target process before invoking psignal(). -- FreeBSD Volunteer, http://people.freebsd.org/~jkoshy