Skip to content

Commit

Permalink
Removing join after task failed creation. Fixes nasa#1955
Browse files Browse the repository at this point in the history
  • Loading branch information
LeStarch committed Nov 10, 2023
1 parent 1e8d413 commit d5dd350
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Os/Posix/Task.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ namespace Os {
}
(void)pthread_attr_destroy(&att);
if (stat != 0) {
(void)pthread_join(*tid, nullptr);
delete tid;
tid = nullptr;
Fw::Logger::logMsg("pthread_create: %s. %s\n", reinterpret_cast<POINTER_CAST>(message), reinterpret_cast<POINTER_CAST>(strerror(stat)));
Expand Down

0 comments on commit d5dd350

Please sign in to comment.