From 176f379c7adaa8ddca538afbd86ee699727a902f Mon Sep 17 00:00:00 2001 From: Ludwig Ortmann Date: Wed, 29 Jan 2014 18:42:47 +0100 Subject: [PATCH] dont err() but warn() if no thread exists in native_isr_entry --- cpu/native/irq_cpu.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cpu/native/irq_cpu.c b/cpu/native/irq_cpu.c index ef7539a328..2de537835c 100644 --- a/cpu/native/irq_cpu.c +++ b/cpu/native/irq_cpu.c @@ -305,7 +305,10 @@ void native_isr_entry(int sig, siginfo_t *info, void *context) errx(EXIT_FAILURE, "native_isr_entry: context is null - unhandled"); } if (active_thread == NULL) { - errx(EXIT_FAILURE, "native_isr_entry: active_thread is null - unhandled"); + _native_in_isr++; + warnx("native_isr_entry: active_thread is null - unhandled"); + _native_in_isr--; + return; } /* XXX: Workaround safety check - whenever this happens it really