summaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorMarcus Brinkmann <marcus@gnu.org>2004-03-19 04:26:42 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-04-06 22:32:48 +0200
commit165fba0793d197c83d3c30efbf75105460af2b5f (patch)
tree586dfae9e0473e67bb08204195abfb45f943f310 /sysdeps
parent0d723d7f3a762f106de2f95af2fdaaa650359d80 (diff)
Fix last change.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/l4/pt-pool-np.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/l4/pt-pool-np.c b/sysdeps/l4/pt-pool-np.c
index c59e15a9..d006b4f3 100644
--- a/sysdeps/l4/pt-pool-np.c
+++ b/sysdeps/l4/pt-pool-np.c
@@ -46,7 +46,8 @@ pthread_pool_get_np (void)
__pthread_mutex_lock (&pool_lock);
/* FIXME: Do error checking. */
tid = pool_list;
- pool_list = l4_user_defined_handle_of (tid);
+ if (tid != l4_nilthread)
+ pool_list = l4_user_defined_handle_of (tid);
__pthread_mutex_unlock (&pool_lock);
return tid;
}