From owner-freebsd-threads@FreeBSD.ORG Mon Jun 30 15:28:06 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 E9A6337B401 for ; Mon, 30 Jun 2003 15:28:06 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 22BA843FAF for ; Mon, 30 Jun 2003 15:28:06 -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 h5UMS5AI022713; Mon, 30 Jun 2003 18:28:05 -0400 (EDT) Date: Mon, 30 Jun 2003 18:28:05 -0400 (EDT) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: David Xu In-Reply-To: <000701c33f56$9fc98f70$0701a8c0@tiger> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: threads@freebsd.org cc: xiong jinshan 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 22:28:07 -0000 On Tue, 1 Jul 2003, David Xu wrote: > From: "xiong jinshan" > > > > --- 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. [ ... ] > > Missing alarm() call ? I noticed that too, but I assumed he knew that. I sent the alarm with kill(1) from another shell. -- Dan Eischen