projects
/
project
/
procd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
trigger: replace trigger_init() with static runqueue initialization
[project/procd.git]
/
service
/
trigger.c
diff --git
a/service/trigger.c
b/service/trigger.c
index
042b3b6
..
55d07e4
100644
(file)
--- a/
service/trigger.c
+++ b/
service/trigger.c
@@
-62,7
+62,7
@@
struct job {
};
static LIST_HEAD(triggers);
};
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)
{
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, ".*");
static bool trigger_match(const char *event, const char *match)
{
char *wildcard = strstr(match, ".*");