die regardless of what type of failure pthread_create() encounters

This commit is contained in:
Michael Ploujnikov 2010-01-12 08:01:54 -05:00
parent b49a5abff2
commit 09fd15d5f8

View file

@ -144,11 +144,8 @@ lumiera_thread_new (enum lumiera_thread_class kind,
self->arguments = NULL;
int error = pthread_create (&self->id, attrs, &thread_loop, self);
ENSURE(error == 0 || EAGAIN == error, "pthread_create returned %d:%s", error, strerror(error));
if (error)
{
// error here can only be EAGAIN, given the above ENSURE
FIXME ("error is %d:%s, see if this can be improved", error, strerror(error));
LUMIERA_DIE (ERRNO);
}
return self;