native: net: Take care of unregistering SIGIO on reboot

This commit is contained in:
Benoît Canet 2015-07-19 11:37:58 +02:00
parent 800b057fac
commit 008b105166

View File

@ -354,6 +354,11 @@ int tap_init(char *name)
void tap_cleanup(void) void tap_cleanup(void)
{ {
unregister_interrupt(SIGIO);
#ifdef __MACH__
kill(sigio_child_pid, SIGKILL);
#endif
if (_native_tap_fd == -1) { if (_native_tap_fd == -1) {
return; return;
} }