From 39a9e71121b18dc9fe320c4f441a3d1e68289b63 Mon Sep 17 00:00:00 2001 From: ad Date: Wed, 25 Jun 2008 11:06:34 +0000 Subject: [PATCH] pthread_join: explicitly test for cancellation. --- lib/libpthread/pthread.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/libpthread/pthread.c b/lib/libpthread/pthread.c index 0d3cb684eb59..365b7f32b0aa 100644 --- a/lib/libpthread/pthread.c +++ b/lib/libpthread/pthread.c @@ -1,4 +1,4 @@ -/* $NetBSD: pthread.c,v 1.101 2008/05/25 17:05:28 ad Exp $ */ +/* $NetBSD: pthread.c,v 1.102 2008/06/25 11:06:34 ad Exp $ */ /*- * Copyright (c) 2001, 2002, 2003, 2006, 2007, 2008 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include -__RCSID("$NetBSD: pthread.c,v 1.101 2008/05/25 17:05:28 ad Exp $"); +__RCSID("$NetBSD: pthread.c,v 1.102 2008/06/25 11:06:34 ad Exp $"); #define __EXPOSE_STACK 1 @@ -594,6 +594,7 @@ pthread_join(pthread_t thread, void **valptr) } } + pthread__testcancel(self); if (valptr != NULL) *valptr = thread->pt_exitval; /* pthread__reap() will drop the lock. */