native: net: Take care of unregistering SIGIO on reboot
This commit is contained in:
parent
800b057fac
commit
008b105166
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user