diff options
author | ek110237 <none@none> | 2008-03-31 15:48:10 -0700 |
---|---|---|
committer | ek110237 <none@none> | 2008-03-31 15:48:10 -0700 |
commit | 0a482163dc221254a72290e01226e86b8d7952e3 (patch) | |
tree | 1ffdc55a0dae1623ce279d2402c9ac310fb5f0cc /usr/src/cmd/filebench/common/threadflow.c | |
parent | a9425c256f95ea450cb0131519d422482f756e78 (diff) | |
download | illumos-joyent-0a482163dc221254a72290e01226e86b8d7952e3.tar.gz |
6624946 filemicro_* workloads need some love
6626167 go_filebench dumps a core with filereader
6639962 singlestreamwrite*.f should not mention filesize
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; } |