aboutsummaryrefslogtreecommitdiff
path: root/tools/regression/gaithrstress
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2010-02-12 16:33:03 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2010-02-12 16:33:03 +0000
commit2949bd100b20420f219d834034ef34daf6454b34 (patch)
treef3d821151367f2d4ecd8ad26c51ab7cfb273ea90 /tools/regression/gaithrstress
parenta66d183c7bb1fd7fba2956e675d8abcdf32eb8ca (diff)
Fixed error checking of pthread(3) functions.
PR: 143807 Submitted by: pluknet (partly)
Notes
Notes: svn path=/head/; revision=203800
Diffstat (limited to 'tools/regression/gaithrstress')
-rw-r--r--tools/regression/gaithrstress/gaithrstress.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/regression/gaithrstress/gaithrstress.c b/tools/regression/gaithrstress/gaithrstress.c
index 023e0b57355b..c76f94f353e0 100644
--- a/tools/regression/gaithrstress/gaithrstress.c
+++ b/tools/regression/gaithrstress/gaithrstress.c
@@ -241,7 +241,7 @@ usage:
fflush(stdout);
for (i = 0; i < nworkers; i++) {
if (pthread_create(&workers[i].w_thread, NULL, work,
- &workers[i]) == -1)
+ &workers[i]) != 0)
err(1, "creating worker %u", i);
printf("%u%s", i, i == nworkers - 1 ? ".\n" : ", ");
fflush(stdout);