mirror of
https://github.com/espressif/openthread.git
synced 2026-10-28 18:24:37 +00:00
[android] fix untracked pid in Android (#3343)
This commit is contained in:
@@ -121,9 +121,14 @@ exit:
|
||||
return error;
|
||||
}
|
||||
|
||||
HdlcInterface::~HdlcInterface(void)
|
||||
{
|
||||
Deinit();
|
||||
}
|
||||
|
||||
void HdlcInterface::Deinit(void)
|
||||
{
|
||||
assert(mSockFd != -1);
|
||||
VerifyOrExit(mSockFd != -1);
|
||||
|
||||
VerifyOrExit(0 == close(mSockFd), perror("close NCP"));
|
||||
VerifyOrExit(-1 != wait(NULL), perror("wait NCP"));
|
||||
|
||||
@@ -79,6 +79,12 @@ public:
|
||||
*/
|
||||
explicit HdlcInterface(Callbacks &aCallbacks);
|
||||
|
||||
/**
|
||||
* This destructor deinitializes the object.
|
||||
*
|
||||
*/
|
||||
~HdlcInterface(void);
|
||||
|
||||
/**
|
||||
* This method initializes the interface to the Radio Co-processor (RCP)
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user