From d96bc5a4fbb90754f5afececbdc97f3d5395076e Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sun, 8 Mar 2020 01:16:43 +0800 Subject: [PATCH] netinit: Unregister notification at the end in netinit_monitor --- netutils/netinit/netinit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/netutils/netinit/netinit.c b/netutils/netinit/netinit.c index dec073be9..19216555c 100644 --- a/netutils/netinit/netinit.c +++ b/netutils/netinit/netinit.c @@ -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: