From 4fae22bf3d24157b0d9f09ab9e4315c7bbaea69e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cenk=20G=C3=BCndo=C4=9Fan?= Date: Mon, 6 Apr 2015 10:18:46 +0200 Subject: [PATCH] cpu/native: do not exit when real_read returns 0 --- cpu/native/net/tap.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cpu/native/net/tap.c b/cpu/native/net/tap.c index e5ffcb0368..9b5d2731dd 100644 --- a/cpu/native/net/tap.c +++ b/cpu/native/net/tap.c @@ -149,6 +149,9 @@ void _native_handle_tap_input(void) err(EXIT_FAILURE, "_native_handle_tap_input: read"); } } + else if (nread == 0) { + DEBUG("_native_handle_tap_input: ignoring null-event\n"); + } else { errx(EXIT_FAILURE, "internal error _native_handle_tap_input"); }