From owner-freebsd-threads@FreeBSD.ORG Wed Feb 4 07:51:54 2004 Return-Path: Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CDA3B16A4CF; Wed, 4 Feb 2004 07:51:54 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1EAF043D1D; Wed, 4 Feb 2004 07:51:54 -0800 (PST) (envelope-from deischen@FreeBSD.org) Received: from freefall.freebsd.org (deischen@localhost [127.0.0.1]) i14FprFR013529; Wed, 4 Feb 2004 07:51:54 -0800 (PST) (envelope-from deischen@freefall.freebsd.org) Received: (from deischen@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i14Fpr2m013525; Wed, 4 Feb 2004 07:51:53 -0800 (PST) (envelope-from deischen) Date: Wed, 4 Feb 2004 07:51:53 -0800 (PST) From: Daniel Eischen Message-Id: <200402041551.i14Fpr2m013525@freefall.freebsd.org> To: nb@ravenbrook.com, deischen@FreeBSD.org, freebsd-threads@FreeBSD.org Subject: Re: bin/31661: pthread_kill signal handler doesn't get sigcontext or ucontext X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Feb 2004 15:51:55 -0000 Synopsis: pthread_kill signal handler doesn't get sigcontext or ucontext State-Changed-From-To: open->closed State-Changed-By: deischen State-Changed-When: Wed Feb 4 07:47:36 PST 2004 State-Changed-Why: This is written against libc_r's implementation of pthread_kill; libpthread does provide full signal handler arguments to pthread_kill. Still it iw worth noting that trying to do anything sane with a context from a pthread_kill() is probably not what you want especially for scope process threads. pthread_kill() is a simulated interrupt and the threads interrupted context is generated by the threads library -- it is not like a real signal interrupted the thread while it was running. http://www.freebsd.org/cgi/query-pr.cgi?pr=31661