summaryrefslogtreecommitdiff
path: root/nsswitch/stress-nss-libwbclient.c
diff options
context:
space:
mode:
Diffstat (limited to 'nsswitch/stress-nss-libwbclient.c')
-rw-r--r--nsswitch/stress-nss-libwbclient.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/nsswitch/stress-nss-libwbclient.c b/nsswitch/stress-nss-libwbclient.c
index 740ad0e90fa..df1d85c9c40 100644
--- a/nsswitch/stress-nss-libwbclient.c
+++ b/nsswitch/stress-nss-libwbclient.c
@@ -149,7 +149,14 @@ int main(int argc, char *argv[])
/* 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,