commit | e083fdfef42414cb1163d95b59f1d43a44fe0dbe | [log] [tgz] |
---|---|---|
author | Kamil Burzynski <Nopik@users.noreply.github.com> | Tue Nov 07 18:51:09 2017 +0100 |
committer | Jonathan Hui <jonhui@nestlabs.com> | Tue Nov 07 09:51:09 2017 -0800 |
tree | a1d48fc458ea32bfae0780e0a373aca982536438 | |
parent | a5ede80a15381c0a58538392df74b5db8d0a655e [diff] |
[posix] clear pending alarms in posix platform which could persist execve call (#2323)
diff --git a/examples/platforms/posix/misc.c b/examples/platforms/posix/misc.c index 38d41ee..ec0b6d7 100644 --- a/examples/platforms/posix/misc.c +++ b/examples/platforms/posix/misc.c
@@ -55,6 +55,8 @@ platformRadioDeinit(); platformUartRestore(); + alarm(0); + execvp(argv[0], argv); perror("reset failed"); exit(EXIT_FAILURE);