force all runqueue tasks to a timeout of 15s
authorJohn Crispin <blogic@openwrt.org>
Wed, 29 Jan 2014 03:30:57 +0000 (03:30 +0000)
committerJohn Crispin <blogic@openwrt.org>
Wed, 29 Jan 2014 03:31:50 +0000 (03:31 +0000)
Signed-off-by: John Crispin <blogic@openwrt.org>
rcS.c

diff --git a/rcS.c b/rcS.c
index 395d992..039b595 100644 (file)
--- 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);