From 008b105166c2994e67d36bf401fb7e2a0095dade Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Canet?= Date: Sun, 19 Jul 2015 11:37:58 +0200 Subject: [PATCH] native: net: Take care of unregistering SIGIO on reboot --- cpu/native/net/tap.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cpu/native/net/tap.c b/cpu/native/net/tap.c index 3c3a7ff156..c5590b907c 100644 --- a/cpu/native/net/tap.c +++ b/cpu/native/net/tap.c @@ -354,6 +354,11 @@ int tap_init(char *name) void tap_cleanup(void) { + unregister_interrupt(SIGIO); +#ifdef __MACH__ + kill(sigio_child_pid, SIGKILL); +#endif + if (_native_tap_fd == -1) { return; }