diff options
author | John Crispin <blogic@openwrt.org> | 2014-02-07 14:24:10 +0100 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2014-02-07 14:26:15 +0100 |
commit | 3a225cfa1782763980c86e9811c683ade33012cc (patch) | |
tree | b71e03f57d32e098ee0c89d0eab7a81f1d0fa12d | |
parent | 8a9ffa6ec88d2b199d9262666dadcd962da82fb5 (diff) | |
download | unitd-3a225cfa1782763980c86e9811c683ade33012cc.tar unitd-3a225cfa1782763980c86e9811c683ade33012cc.zip |
commit e0921ed71bab0ad7d2344774a33c22809eb10190 set the timeout globally
lets restrict it to stop scripts only
Signed-off-by: John Crispin <blogic@openwrt.org>
-rw-r--r-- | rcS.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |