projects
/
project
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9814c6c
)
Fix ifupdate events
author
Steven Barth
<steven@midlink.org>
Sat, 19 Oct 2013 11:00:49 +0000
(13:00 +0200)
committer
Steven Barth
<steven@midlink.org>
Sat, 19 Oct 2013 11:00:49 +0000
(13:00 +0200)
interface-event.c
patch
|
blob
|
history
diff --git
a/interface-event.c
b/interface-event.c
index
fe4759e
..
707764a
100644
(file)
--- a/
interface-event.c
+++ b/
interface-event.c
@@
-111,9
+111,9
@@
interface_queue_event(struct interface *iface, enum interface_event ev)
last_ev = iface->hotplug_ev;
iface->hotplug_ev = ev;
last_ev = iface->hotplug_ev;
iface->hotplug_ev = ev;
- if (
last_ev == ev
&& !list_empty(&iface->hotplug_list))
+ if (
(last_ev == ev && ev != IFEV_UPDATE)
&& !list_empty(&iface->hotplug_list))
list_del_init(&iface->hotplug_list);
list_del_init(&iface->hotplug_list);
- else if (
last_ev != ev
&& list_empty(&iface->hotplug_list))
+ else if (
(last_ev != ev || ev == IFEV_UPDATE)
&& list_empty(&iface->hotplug_list))
list_add(&iface->hotplug_list, &pending);
if (!task.pending && !current)
list_add(&iface->hotplug_list, &pending);
if (!task.pending && !current)