projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
t/io_uring: cleanup vectored vs non-vectored
[fio.git]
/
t
/
read-to-pipe-async.c
diff --git
a/t/read-to-pipe-async.c
b/t/read-to-pipe-async.c
index 1370ef084e35bdc0b81df18e11d63f9887ae620d..586e3c95bfd339c276974bc3e641e19837f486d7 100644
(file)
--- a/
t/read-to-pipe-async.c
+++ b/
t/read-to-pipe-async.c
@@
-392,10
+392,13
@@
static void queue_work(struct reader_thread *rt, struct work_item *work)
pthread_cond_signal(&rt->thread.cond);
} else {
int ret = pthread_create(&work->thread, NULL, reader_one_off, work);
pthread_cond_signal(&rt->thread.cond);
} else {
int ret = pthread_create(&work->thread, NULL, reader_one_off, work);
- if (ret)
+ if (ret)
{
fprintf(stderr, "pthread_create=%d\n", ret);
fprintf(stderr, "pthread_create=%d\n", ret);
- else
- pthread_detach(work->thread);
+ } else {
+ ret = pthread_detach(work->thread);
+ if (ret)
+ fprintf(stderr, "pthread_detach=%d\n", ret);
+ }
}
}
}
}