mirror of
https://github.com/espressif/openthread.git
synced 2026-08-01 16:47:47 +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();
|
||||
platformUartRestore();
|
||||
|
||||
alarm(0);
|
||||
|
||||
execvp(argv[0], argv);
|
||||
perror("reset failed");
|
||||
exit(EXIT_FAILURE);
|
||||
|
||||
Reference in New Issue
Block a user