mirror of
https://github.com/espressif/openthread.git
synced 2026-10-10 01:37:38 +00:00
[posix] clear pending alarms in posix platform which could persist execve call (#2323)
This commit is contained in:
committed by
Jonathan Hui
parent
a5ede80a15
commit
e083fdfef4
@@ -55,6 +55,8 @@ void otPlatReset(otInstance *aInstance)
|
|||||||
platformRadioDeinit();
|
platformRadioDeinit();
|
||||||
platformUartRestore();
|
platformUartRestore();
|
||||||
|
|
||||||
|
alarm(0);
|
||||||
|
|
||||||
execvp(argv[0], argv);
|
execvp(argv[0], argv);
|
||||||
perror("reset failed");
|
perror("reset failed");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
|
|||||||
Reference in New Issue
Block a user