X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fprocd.git;a=blobdiff_plain;f=service%2Ftrigger.c;h=55d07e4dfa9b1611eb90b540befc32513d31656e;hp=042b3b6aa6d76a8d5ac6ec3cdcd353eb2879da69;hb=8eecf942b50d88dbcd7517817fe5c557f10541e0;hpb=1183b6dd0f7bec91aa4adf5b30f62b87146cc9a6 diff --git a/service/trigger.c b/service/trigger.c index 042b3b6..55d07e4 100644 --- a/service/trigger.c +++ b/service/trigger.c @@ -62,7 +62,7 @@ struct job { }; static LIST_HEAD(triggers); -static struct runqueue q; +static RUNQUEUE(q, 1); static const char* rule_handle_var(struct json_script_ctx *ctx, const char *name, struct blob_attr *vars) { @@ -312,12 +312,6 @@ void trigger_del(void *id) } } -void trigger_init(void) -{ - runqueue_init(&q); - q.max_running_tasks = 1; -} - static bool trigger_match(const char *event, const char *match) { char *wildcard = strstr(match, ".*");