diff options
-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 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; } |