summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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