Skip to content

Commit

Permalink
netinit: Unregister notification at the end in netinit_monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxiang781216 authored and gregory-nutt committed Mar 7, 2020
1 parent 7f20375 commit d96bc5a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion netutils/netinit/netinit.c
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,8 @@ static int netinit_monitor(void)
/* TODO: Stop the PHY notifications and remove the signal handler. */

errout_with_notification:
# warning Missing logic
ifr.ifr_mii_notify_event.sigev_notify = SIGEV_NONE;
ioctl(sd, SIOCMIINOTIFY, (unsigned long)&ifr);
errout_with_sigaction:
sigaction(CONFIG_NETINIT_SIGNO, &oact, NULL);
errout_with_socket:
Expand Down

0 comments on commit d96bc5a

Please sign in to comment.