1
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-08-24 18:01:48 +02:00

No more problems when events get scheduled during event processing.

This commit is contained in:
Martin Mares 2000-01-16 17:39:16 +00:00
parent 50fe90edf3
commit ebc793a5f5

View File

@ -77,12 +77,11 @@ int
ev_run_list(event_list *l) ev_run_list(event_list *l)
{ {
node *n, *p; node *n, *p;
int keep = 0;
WALK_LIST_DELSAFE(n, p, *l) WALK_LIST_DELSAFE(n, p, *l)
{ {
event *e = SKIP_BACK(event, n, n); event *e = SKIP_BACK(event, n, n);
keep += ev_run(e); ev_run(e);
} }
return keep; return !EMPTY_LIST(*l);
} }