summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2014-01-29 04:30:57 +0100
committerJohn Crispin <blogic@openwrt.org>2014-01-29 04:31:50 +0100
commite0921ed71bab0ad7d2344774a33c22809eb10190 (patch)
treebe76a5efc9f815ebdad0340bb6cfc2cb469decf6
parent311eb167fce73dbc97c7d9dfcc43a59b5695a8f7 (diff)
downloadunitd-e0921ed71bab0ad7d2344774a33c22809eb10190.tar
unitd-e0921ed71bab0ad7d2344774a33c22809eb10190.zip
force all runqueue tasks to a timeout of 15s
Signed-off-by: John Crispin <blogic@openwrt.org>
-rw-r--r--rcS.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/rcS.c b/rcS.c
index 395d992..039b595 100644
--- a/rcS.c
+++ b/rcS.c
@@ -115,6 +115,7 @@ static void add_initd(struct runqueue *q, char *file, char *param)
s = calloc_a(sizeof(*s), &f, strlen(file) + 1, &p, strlen(param) + 1);
s->proc.task.type = &initd_type;
s->proc.task.complete = q_initd_complete;
+ s->proc.task.run_timeout = 15000;
s->param = p;
s->file = f;
strcpy(s->param, param);