0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 01:31:55 +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:
Martin Mares 1999-03-03 20:40:51 +00:00
parent 2d14045224
commit 0e889c5254

View File

@ -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);