summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2006-01-02 20:48:04 +0000
committerotto <otto@openbsd.org>2006-01-02 20:48:04 +0000
commit514337433231684739b5dbde61dc3d00134544ea (patch)
tree9e08a149d37128a0e498129e7079d11f4886ee49
parentRemove orphaned i2c_bitbang code, as well as i2c_bitbang and i2cexec (diff)
downloadwireguard-openbsd-514337433231684739b5dbde61dc3d00134544ea.tar.xz
wireguard-openbsd-514337433231684739b5dbde61dc3d00134544ea.zip
Don't call pthread_self()->tid when getthrid() will do fine.
-rw-r--r--lib/librthread/rthread_sched.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/librthread/rthread_sched.c b/lib/librthread/rthread_sched.c
index a1919c467d8..584fd64f6a2 100644
--- a/lib/librthread/rthread_sched.c
+++ b/lib/librthread/rthread_sched.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rthread_sched.c,v 1.5 2005/12/31 08:51:20 otto Exp $ */
+/* $OpenBSD: rthread_sched.c,v 1.6 2006/01/02 20:48:04 otto Exp $ */
/*
* Copyright (c) 2004,2005 Ted Unangst <tedu@openbsd.org>
* All Rights Reserved.
@@ -132,7 +132,7 @@ pthread_suspend_np(pthread_t thread)
{
int errn = 0;
- if (thread->tid == pthread_self()->tid)
+ if (thread->tid == getthrid())
return (EDEADLK);
/*
* XXX Avoid a bug in current signal handling by refusing to