From owner-cvs-src@FreeBSD.ORG Fri Aug 17 01:41:47 2007 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 850B916A41A; Fri, 17 Aug 2007 01:41:47 +0000 (UTC) (envelope-from davidxu@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 71C9F13C45A; Fri, 17 Aug 2007 01:41:47 +0000 (UTC) (envelope-from davidxu@freebsd.org) Received: from [127.0.0.1] (root@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l7H1fhcS086697; Fri, 17 Aug 2007 01:41:44 GMT (envelope-from davidxu@freebsd.org) Message-ID: <46C4FD02.3090708@freebsd.org> Date: Fri, 17 Aug 2007 09:42:26 +0800 From: David Xu User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.13) Gecko/20070516 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Daniel Eischen References: <200708160526.l7G5Qg0b008022@repoman.freebsd.org> <46C472EF.9070204@delphij.net> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: cvs-src@freebsd.org, src-committers@freebsd.org, Xin LI , cvs-all@freebsd.org, tijl@ulyssis.org Subject: Re: cvs commit: src/sys/kern kern_thr.c syscalls.master src/sys/sys thr.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Aug 2007 01:41:47 -0000 Daniel Eischen wrote: > On Thu, 16 Aug 2007, Xin LI wrote: > >> Daniel Eischen wrote: >> >>> On Thu, 16 Aug 2007, David Xu wrote: >>> >>>> davidxu 2007-08-16 05:26:42 UTC >>>> >>>> FreeBSD src repository >>>> >>>> Modified files: >>>> sys/kern kern_thr.c syscalls.master >>>> sys/sys thr.h >>>> Log: >>>> Add thr_kill2 syscall which sends a signal to a thread in another >>>> process. >>> >>> >>> I do not think this is a good idea. There is no such thing in Solaris, >>> only Linux seems to have this hideous idea of an API. >> >> >> I think this would be helpful for applications like Wine. Is there >> any other way to implement the semantics? > > > I realize what it's for, and I don't agree that it belongs in the > tree. There are other forms of interprocess communication, pipes, > sockets, even msg queues. I'm sure you can find a few ways to send > a message to a process to say "send signal X to thread Y" if you > really wanted to. It looks like even Linux makes you use a thread > group, not a thread. > > I don't see where this was discussed on -arch or -current, but > maybe I missed that thread. > > -- > DE > I've CCe'd Tijl Coosemans to check if there is another way to implement the feature in WINE instead of in kernel. in fact, I have delayed the the change for a few days, I was thinking you know the patch, but the fact is not now. PS, the feature is not required by libthr. ;-) Regards, David Xu