threads: improve spawn failure error reporting

pull/9320/head
Victor Julien 2 years ago committed by Victor Julien
parent 26130d903f
commit 8dc12f5f14

@ -1671,7 +1671,8 @@ TmEcode TmThreadSpawn(ThreadVars *tv)
int rc = pthread_create(&tv->t, &attr, tv->tm_func, (void *)tv); int rc = pthread_create(&tv->t, &attr, tv->tm_func, (void *)tv);
if (rc) { if (rc) {
FatalError("Unable to create thread with pthread_create() is %" PRId32, rc); FatalError("Unable to create thread with pthread_create(): retval %d: %s", rc,
strerror(errno));
} }
#if DEBUG && HAVE_PTHREAD_GETATTR_NP #if DEBUG && HAVE_PTHREAD_GETATTR_NP

Loading…
Cancel
Save