Skip to content

Commit

Permalink
native: net: Take care of unregistering SIGIO on reboot
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit-canet committed Aug 3, 2015
1 parent 800b057 commit 008b105
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cpu/native/net/tap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 008b105

Please sign in to comment.