diff options
author | Philip Guenthe <guenther@cvs.openbsd.org> | 2012-04-10 21:10:46 +0000 |
---|---|---|
committer | Philip Guenthe <guenther@cvs.openbsd.org> | 2012-04-10 21:10:46 +0000 |
commit | cc808ad5eaeb6f21df2ea9a638191d88edf05078 (patch) | |
tree | 086646816c5702047d944f517e20c0aaac648d56 | |
parent | a23d67445b5df6555fc4da33d769a3e3908dda34 (diff) |
pthread_setcanceltype() shouldn't be a cancelation point
ok kurt@
-rw-r--r-- | lib/librthread/rthread.c | 3 |
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 { |