Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Mar 2003 14:32:39 -0800 (PST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 26515 for review
Message-ID:  <200303072232.h27MWdCj092422@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200303072232.h27MWdCj092422>