From owner-cvs-src@FreeBSD.ORG Wed Oct 6 14:20:58 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 533AD16A4CE; Wed, 6 Oct 2004 14:20:58 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 49DE243D49; Wed, 6 Oct 2004 14:20:58 +0000 (GMT) (envelope-from mtm@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i96EKwjr040397; Wed, 6 Oct 2004 14:20:58 GMT (envelope-from mtm@repoman.freebsd.org) Received: (from mtm@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i96EKwvd040396; Wed, 6 Oct 2004 14:20:58 GMT (envelope-from mtm) Message-Id: <200410061420.i96EKwvd040396@repoman.freebsd.org> From: Mike Makonnen Date: Wed, 6 Oct 2004 14:20:58 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libthr/thread thr_exit.csrc/sys/compat/freebsd32 syscalls.master src/sys/kern kern_thr.c src/sys/sys thr.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 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: Wed, 06 Oct 2004 14:20:58 -0000 mtm 2004-10-06 14:20:58 UTC FreeBSD src repository Modified files: lib/libthr/thread thr_exit.c sys/compat/freebsd32 syscalls.master sys/kern kern_thr.c sys/sys thr.h Log: Close a race between a thread exiting and the freeing of it's stack. After some discussion the best option seems to be to signal the thread's death from within the kernel. This requires that thr_exit() take an argument. Discussed with: davidxu, deischen, marcel MFC after: 3 days Revision Changes Path 1.14 +2 -3 src/lib/libthr/thread/thr_exit.c 1.41 +1 -1 src/sys/compat/freebsd32/syscalls.master 1.29 +5 -1 src/sys/kern/kern_thr.c 1.4 +1 -1 src/sys/sys/thr.h