summaryrefslogtreecommitdiff
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
commit96e2b4283a91629905e799a719a9c1f7f8f6e6a8 (patch)
tree8f6938f723fc217305e3b9d9cf5880d398b2d2b0
parent4a6de6dc5632fd08588983a4f5bf6ac79d991deb (diff)
Fix last change.
-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 c59e15a..d006b4f 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;
}