[posix] clear pending alarms in posix platform which could persist execve call (#2323)

This commit is contained in:
Kamil Burzynski
2017-11-07 09:51:09 -08:00
committed by Jonathan Hui
parent a5ede80a15
commit e083fdfef4
+2
View File
@@ -55,6 +55,8 @@ void otPlatReset(otInstance *aInstance)
platformRadioDeinit();
platformUartRestore();
alarm(0);
execvp(argv[0], argv);
perror("reset failed");
exit(EXIT_FAILURE);