summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Guenthe <guenther@cvs.openbsd.org>2012-04-10 21:10:46 +0000
committerPhilip Guenthe <guenther@cvs.openbsd.org>2012-04-10 21:10:46 +0000
commitcc808ad5eaeb6f21df2ea9a638191d88edf05078 (patch)
tree086646816c5702047d944f517e20c0aaac648d56
parenta23d67445b5df6555fc4da33d769a3e3908dda34 (diff)
pthread_setcanceltype() shouldn't be a cancelation point
ok kurt@
-rw-r--r--lib/librthread/rthread.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/librthread/rthread.c b/lib/librthread/rthread.c
index f1ced8f5b94..f8f6605e726 100644
--- a/lib/librthread/rthread.c
+++ b/lib/librthread/rthread.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rthread.c,v 1.60 2012/03/22 15:26:04 kurt Exp $ */
+/* $OpenBSD: rthread.c,v 1.61 2012/04/10 21:10:45 guenther Exp $ */
/*
* Copyright (c) 2004,2005 Ted Unangst <tedu@openbsd.org>
* All Rights Reserved.
@@ -506,7 +506,6 @@ pthread_setcanceltype(int type, int *oldtypep)
PTHREAD_CANCEL_DEFERRED : PTHREAD_CANCEL_ASYNCHRONOUS;
if (type == PTHREAD_CANCEL_DEFERRED) {
_rthread_setflag(self, THREAD_CANCEL_DEFERRED);
- pthread_testcancel();
} else if (type == PTHREAD_CANCEL_ASYNCHRONOUS) {
_rthread_clearflag(self, THREAD_CANCEL_DEFERRED);
} else {