From 3a225cfa1782763980c86e9811c683ade33012cc Mon Sep 17 00:00:00 2001 From: John Crispin Date: Fri, 7 Feb 2014 13:24:10 +0000 Subject: [PATCH] commit e0921ed71bab0ad7d2344774a33c22809eb10190 set the timeout globally lets restrict it to stop scripts only Signed-off-by: John Crispin --- rcS.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rcS.c b/rcS.c index 039b595..d04e017 100644 --- a/rcS.c +++ b/rcS.c @@ -115,7 +115,8 @@ 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; + if (!strcmp(param, "stop")) + s->proc.task.run_timeout = 15000; s->param = p; s->file = f; strcpy(s->param, param); -- 2.11.0