Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check MDIO server thread joinable before join the thread #1342

Merged
merged 4 commits into from
Mar 7, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Check MDIO server thread joinable before join the thread
Signed-off-by: Jiahua Wang <jiahua.wang@broadcom.com>
jiahua-wang committed Jan 24, 2024
commit ec754a33ae9c8181253db28c7c768a7eda26b90c
5 changes: 4 additions & 1 deletion syncd/MdioIpcServer.cpp
Original file line number Diff line number Diff line change
@@ -465,7 +465,10 @@ void MdioIpcServer::stopMdioThread(void)
}

m_taskAlive = 0;
m_taskThread.join();
if(m_taskThread.joinable())
{
m_taskThread.join();
}
SWSS_LOG_NOTICE("IPC task thread is stopped\n");
}