mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
osperf/osperf: move close pipefd after pthread_join
Avoid the new thread write the closed pipe Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
This commit is contained in:
parent
f15ed311c0
commit
6ea8f70ca8
1 changed files with 1 additions and 1 deletions
|
|
@ -281,9 +281,9 @@ static size_t poll_performance(void)
|
|||
poll(&fds, 1, -1);
|
||||
performance_end(&result);
|
||||
|
||||
pthread_join(ret, NULL);
|
||||
close(pipefd[0]);
|
||||
close(pipefd[1]);
|
||||
pthread_join(ret, NULL);
|
||||
return performance_gettime(&result);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue