diff options
author | Marcus Brinkmann <marcus@gnu.org> | 2004-03-19 04:26:42 +0000 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gnu.org> | 2009-04-06 22:32:48 +0200 |
commit | 96e2b4283a91629905e799a719a9c1f7f8f6e6a8 (patch) | |
tree | 8f6938f723fc217305e3b9d9cf5880d398b2d2b0 /sysdeps | |
parent | 4a6de6dc5632fd08588983a4f5bf6ac79d991deb (diff) |
Fix last change.
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/l4/pt-pool-np.c | 3 |
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; } |