From owner-p4-projects Fri Mar 7 14:32:43 2003 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 305CC37B405; Fri, 7 Mar 2003 14:32:41 -0800 (PST) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BC8B737B401 for ; Fri, 7 Mar 2003 14:32:40 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 46BCC43F3F for ; Fri, 7 Mar 2003 14:32:40 -0800 (PST) (envelope-from jhb@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h27MWe0U092425 for ; Fri, 7 Mar 2003 14:32:40 -0800 (PST) (envelope-from jhb@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h27MWdCj092422 for perforce@freebsd.org; Fri, 7 Mar 2003 14:32:39 -0800 (PST) Date: Fri, 7 Mar 2003 14:32:39 -0800 (PST) Message-Id: <200303072232.h27MWdCj092422@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to jhb@freebsd.org using -f From: John Baldwin Subject: PERFORCE change 26515 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG http://perforce.freebsd.org/chv.cgi?CH=26515 Change 26515 by jhb@jhb_laptop on 2003/03/07 14:31:44 Dang it, the threads aren't dying. Affected files ... .. //depot/projects/smpng/sys/modules/evtest/evtest.c#4 edit Differences ... ==== //depot/projects/smpng/sys/modules/evtest/evtest.c#4 (text+ko) ==== @@ -207,8 +207,10 @@ mtx_unlock(&event_mtx); if (ev < 0) { ev = -ev; + printf("%s: got thread %d death\n", __func__, ev); if (ev < NUM_THREADS && threads[ev] == curthread->td_proc) { + printf("%s: thread %d dying\n", __func__, ev); mtx_lock(&Giant); kthread_exit(0); } @@ -281,6 +283,7 @@ if (i < 0 || i >= NUM_THREADS || threads[i] == NULL) return; mtx_assert(&event_mtx, MA_OWNED); + printf("%s: killing thread %d\n", __func__, i); event = -i; cv_signal(&event_cv); msleep(threads[i], &event_mtx, PWAIT, "evtstun", 0); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message