Skip to content

Commit d96bc5a

Browse files
xiaoxiang781216gregory-nutt
authored andcommitted
netinit: Unregister notification at the end in netinit_monitor
1 parent 7f20375 commit d96bc5a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

netutils/netinit/netinit.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,8 @@ static int netinit_monitor(void)
760760
/* TODO: Stop the PHY notifications and remove the signal handler. */
761761

762762
errout_with_notification:
763-
# warning Missing logic
763+
ifr.ifr_mii_notify_event.sigev_notify = SIGEV_NONE;
764+
ioctl(sd, SIOCMIINOTIFY, (unsigned long)&ifr);
764765
errout_with_sigaction:
765766
sigaction(CONFIG_NETINIT_SIGNO, &oact, NULL);
766767
errout_with_socket:

0 commit comments

Comments
 (0)