diff options
Diffstat (limited to 'src/listener.c')
-rw-r--r-- | src/listener.c | 27 |
1 files changed, 11 insertions, 16 deletions
diff --git a/src/listener.c b/src/listener.c index d68897d..69f4b52 100644 --- a/src/listener.c +++ b/src/listener.c @@ -233,6 +233,11 @@ listener_cmp(listener_t *a, listener_t *b) return 1; } + if (strcmp(a->prog, b->prog)) { + debug(5, ("%s/%s: commands differ", a->id, b->id)); + return 1; + } + if (ipv4_match_list_cmp(a->match_source, b->match_source)) { debug(5, ("%s/%s: match-source lists differ", a->id, b->id)); return 1; @@ -532,23 +537,13 @@ onexit_reaction(listener_t *lp) } void -listener_proc_report() +listener_proc_report(listener_t *lp) { - listener_t *lp; - - if (proc_stop == 0) - return; - proc_stop = 0; - - for (lp = llist.head; lp; lp = lp->next) { - if (lp->status == stat_term) { - listener_print_status(lp); - if (lp->decommission) - listener_run_action(lp, event_cleanup); - else - onexit_reaction(lp); - } - } + listener_print_status(lp); + if (lp->decommission) + listener_run_action(lp, event_cleanup); + else + onexit_reaction(lp); } void |