Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hn70ap
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
f4grx
hn70ap
Commits
c40daa07
Commit
c40daa07
authored
5 years ago
by
f4grx
Browse files
Options
Downloads
Patches
Plain Diff
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 years ago
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
apps/libhn70ap/Kconfig
+1
-1
1 addition, 1 deletion
apps/libhn70ap/Kconfig
apps/sysdaemon/sysdaemon_netmonitor.c
+3
-2
3 additions, 2 deletions
apps/sysdaemon/sysdaemon_netmonitor.c
with
4 additions
and
3 deletions
apps/libhn70ap/Kconfig
+
1
−
1
View file @
c40daa07
...
...
@@ -5,4 +5,4 @@
config LIBHN70AP
bool "Common Library"
default
y
default
n
This diff is collapsed.
Click to expand it.
apps/sysdaemon/sysdaemon_netmonitor.c
+
3
−
2
View file @
c40daa07
...
...
@@ -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:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment