Signed-off-by: Ralph Wuerthner <ralph.wuerthner@de.ibm.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
/* wait for query threads to terminate */
for (n = 0; n < 2; n++) {
/* wait for query threads to terminate */
for (n = 0; n < 2; n++) {
- pthread_join(threads[n], NULL);
+ rc = pthread_join(threads[n], NULL);
+ if (rc != 0) {
+ fprintf(stderr,
+ "joining query thread %i failed: %s\n",
+ n,
+ strerror(rc));
+ exit(1);
+ }
}
fprintf(state.fail ? stderr: stdout,
}
fprintf(state.fail ? stderr: stdout,