diff options
Diffstat (limited to 'usr/src/cmd/filebench/common/threadflow.c')
-rw-r--r-- | usr/src/cmd/filebench/common/threadflow.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr/src/cmd/filebench/common/threadflow.c b/usr/src/cmd/filebench/common/threadflow.c index eb2e7ad665..041241de27 100644 --- a/usr/src/cmd/filebench/common/threadflow.c +++ b/usr/src/cmd/filebench/common/threadflow.c @@ -200,13 +200,13 @@ threadflow_init(procflow_t *procflow) (void) ipc_mutex_unlock(&filebench_shm->threadflow_lock); while (threadflow) { - void *status; - /* wait for all threads to finish */ - if (threadflow->tf_tid) - (void) pthread_join(threadflow->tf_tid, &status); + if (threadflow->tf_tid) { + void *status; - ret |= *(int *)status; + if (pthread_join(threadflow->tf_tid, &status) == 0) + ret += *(int *)status; + } threadflow = threadflow->tf_next; } |