diff options
author | Martin Mares <mj@ucw.cz> | 1999-10-29 14:08:49 +0200 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 1999-10-29 14:08:49 +0200 |
commit | 0d70292d88276a9883ab8bc15b00e6a2e2fe4487 (patch) | |
tree | 19985b61964aacd88b239cefbea547cca85eccb9 /nest/rt-table.c | |
parent | 92af6f309b9283482384bd9bbd0351cd71e3cf1d (diff) | |
download | bird-0d70292d88276a9883ab8bc15b00e6a2e2fe4487.tar bird-0d70292d88276a9883ab8bc15b00e6a2e2fe4487.zip |
Events now return a value. If it's non-zero, the event is re-queued
for processing in next event cycle. This can be used to prevent background
actions (hint: user commands) from hogging the CPU for too long time.
Diffstat (limited to 'nest/rt-table.c')
-rw-r--r-- | nest/rt-table.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nest/rt-table.c b/nest/rt-table.c index 0f423f8..353473d 100644 --- a/nest/rt-table.c +++ b/nest/rt-table.c @@ -395,7 +395,7 @@ rt_dump_all(void) rt_dump(t); } -static void +static int rt_gc(void *unused) { rtable *t; @@ -404,6 +404,7 @@ rt_gc(void *unused) rt_prune_all(); rt_last_gc = now; rt_gc_counter = 0; + return 0; } void |