summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-01-16 18:39:16 +0100
committerMartin Mares <mj@ucw.cz>2000-01-16 18:39:16 +0100
commitebc793a5f552bb676014f771d81c074b7dd4345d (patch)
tree20db0a3e2810a5412650bd2e5fe078c0e13f8e59
parent50fe90edf3deab409ea7887c131bfe6ce89fa556 (diff)
downloadbird-ebc793a5f552bb676014f771d81c074b7dd4345d.tar
bird-ebc793a5f552bb676014f771d81c074b7dd4345d.zip
No more problems when events get scheduled during event processing.
-rw-r--r--lib/event.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/event.c b/lib/event.c
index 8f72a70..9ac80ac 100644
--- a/lib/event.c
+++ b/lib/event.c
@@ -77,12 +77,11 @@ int
ev_run_list(event_list *l)
{
node *n, *p;
- int keep = 0;
WALK_LIST_DELSAFE(n, p, *l)
{
event *e = SKIP_BACK(event, n, n);
- keep += ev_run(e);
+ ev_run(e);
}
- return keep;
+ return !EMPTY_LIST(*l);
}