pthread_create may fail with EAGAIN (which is no fault of the
programmer), so don't allow the check to be compiled out.
Signed-off-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: Ia2695ea6953b589ac8ab8b444fb668daee06a614
urcu_posix_assert(!ret);
ret = pthread_create(&tid_defer, NULL, thr_defer, NULL);
- urcu_posix_assert(!ret);
+ if (ret)
+ urcu_die(ret);
ret = pthread_sigmask(SIG_SETMASK, &oldmask, NULL);
urcu_posix_assert(!ret);