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

Find a better way to shutdown server and stop event loop for OTA Linux platform #16697

Closed
carol-apple opened this issue Mar 27, 2022 · 0 comments · Fixed by #16698
Closed

Find a better way to shutdown server and stop event loop for OTA Linux platform #16697

carol-apple opened this issue Mar 27, 2022 · 0 comments · Fixed by #16698
Assignees

Comments

@carol-apple
Copy link
Contributor

Problem

This is to track the comment made at #16482 (comment)

Specifically, we added an OTARequestorInterface::Shutdown as a workaround for Linux/Darwin platforms to shut the server and stop event in order to apply (execv) the new image.

Proposed Solution

Call DeviceLayer::PlatformMgr().HandleServerShuttingDown() and DeviceLayer::PlatformMgr().StopEventLoopTask() directly from the platform impl of OTAImageProcessor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant