Skip to content
Snippets Groups Projects
Commit c40daa07 authored by f4grx's avatar f4grx
Browse files

netmonitor: remove a missing logic warning. Also disable libhn70ap by default

parent f559b4dd
Branches master
No related tags found
No related merge requests found
Pipeline #284 failed
......@@ -5,4 +5,4 @@
config LIBHN70AP
bool "Common Library"
default y
default n
......@@ -192,6 +192,7 @@ static void* netmonitor_thread(void *arg)
struct timespec reltime;
struct ifreq ifr;
struct sigaction act;
struct sigaction oact;
bool devup;
int ret;
int sd;
......@@ -221,7 +222,7 @@ static void* netmonitor_thread(void *arg)
act.sa_sigaction = netmonitor_signal;
act.sa_flags = SA_SIGINFO;
ret = sigaction(SIGUSR2, &act, NULL);
ret = sigaction(SIGUSR2, &act, &oact);
if (ret < 0)
{
ret = -errno;
......@@ -394,7 +395,7 @@ static void* netmonitor_thread(void *arg)
errout_with_notification:
# warning Missing logic
errout_with_sigaction:
# warning Missing logic
(void)sigaction(SIGUSR2, &oact, NULL);
errout_with_socket:
close(sd);
errout:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment