From: Martin Mares Date: Wed, 3 Mar 1999 20:40:51 +0000 (+0000) Subject: Added a hack forcing protocols with priority>0 to be started up X-Git-Tag: v1.2.0~1677 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e889c52542508dd49433bed1785072cb7799009;p=thirdparty%2Fbird.git Added a hack forcing protocols with priority>0 to be started up immediately. Grrr, need to find a real solution some day. --- diff --git a/nest/proto.c b/nest/proto.c index 76120fa86..cbafeb391 100644 --- a/nest/proto.c +++ b/nest/proto.c @@ -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);