You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2015/11/24 21:39:53 UTC
[07/11] incubator-mynewt-larva git commit: Make it possible to use
baselibc with arch native on OSX.
Make it possible to use baselibc with arch native on OSX.
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/commit/e340d4e5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/tree/e340d4e5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/diff/e340d4e5
Branch: refs/heads/master
Commit: e340d4e5da6e62a0137fc9cf422e6ed3e319bd7b
Parents: b4217ea
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Tue Nov 24 11:41:38 2015 -0800
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Tue Nov 24 11:41:38 2015 -0800
----------------------------------------------------------------------
libs/os/src/arch/sim/os_arch_sim.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/e340d4e5/libs/os/src/arch/sim/os_arch_sim.c
----------------------------------------------------------------------
diff --git a/libs/os/src/arch/sim/os_arch_sim.c b/libs/os/src/arch/sim/os_arch_sim.c
index 2a1d585..0c83487 100644
--- a/libs/os/src/arch/sim/os_arch_sim.c
+++ b/libs/os/src/arch/sim/os_arch_sim.c
@@ -23,6 +23,7 @@
#include <string.h>
#include <stdio.h>
+#include <unistd.h>
#include <setjmp.h>
#include <signal.h>
#include <sys/time.h>
@@ -298,8 +299,9 @@ start_timer(void)
rc = setitimer(ITIMER_VIRTUAL, &it, NULL);
if (rc != 0) {
- perror("Cannot set itimer");
- abort();
+ const char msg[] = "Cannot set itimer";
+ write(2, msg, sizeof(msg));
+ _exit(1);
}
}