mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
Added a hack forcing protocols with priority>0 to be started up
immediately. Grrr, need to find a real solution some day.
This commit is contained in:
parent
2d14045224
commit
0e889c5254
@ -319,6 +319,12 @@ proto_notify_state(struct proto *p, unsigned ps)
|
||||
ASSERT(ops == PS_DOWN || ops == PS_START);
|
||||
ASSERT(cs == FS_HUNGRY);
|
||||
DBG("%s: Scheduling meal\n", p->name);
|
||||
if (p->proto->priority) /* FIXME: Terrible hack to get synchronous device/kernel startup! */
|
||||
{
|
||||
p->core_state = FS_FEEDING;
|
||||
proto_feed(p);
|
||||
return;
|
||||
}
|
||||
cs = FS_FEEDING;
|
||||
p->attn->hook = proto_feed;
|
||||
ev_schedule(p->attn);
|
||||
|
Loading…
Reference in New Issue
Block a user