From owner-freebsd-threads@FreeBSD.ORG Mon Jun 30 09:17:38 2003 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8ECEB37B401 for ; Mon, 30 Jun 2003 09:17:38 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id CEE1343F93 for ; Mon, 30 Jun 2003 09:17:37 -0700 (PDT) (envelope-from eischen@vigrid.com) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mail.pcnet.com (8.12.8/8.12.1) with ESMTP id h5UGHbAI020457; Mon, 30 Jun 2003 12:17:37 -0400 (EDT) Date: Mon, 30 Jun 2003 12:17:37 -0400 (EDT) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: xiong jinshan In-Reply-To: <20030630154618.93274.qmail@web80511.mail.yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: threads@freebsd.org Subject: Re: About the kse signal process X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: deischen@freebsd.org List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jun 2003 16:17:38 -0000 On Mon, 30 Jun 2003, xiong jinshan wrote: > --- Daniel Eischen wrote: > > On Mon, 30 Jun 2003, xiong jinshan wrote: > > > > > Hi, > > > I am wondering that the following piece of code > > > can't work with the unix semantics. I tested it > > with > > > 5.1 release and i386 arch. By unix sementics, if I > > > send the SIGALRM to this running programme, it > > should > > > be received by the thr_func() only, and print a > > prompt > > > msg on the console. > > > > Yes, only thr_func() should receive the alarm. > This is the issue. Nothing printed on the console when > I sent the signal SIGALRM, it meant that none of the > thread received this signal. It works for me with both libc_r and libkse. This is from a very recent -current. I can't test under 5.1-release. There have been some changes lately with regard to signals in -current and libkse. I don't know about libc_r... -- Dan Eischen