From 1e238eec61f02192d4a2840185ff783764a245e3 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Thu, 19 Mar 2020 07:50:29 +0100 Subject: [PATCH] Increase MAX number of arguments to a service 32 -> 64 Usually a wrapper script is recommended, but for some use-cases it is more efficient to just be able to use more command line args. Example application that needs this; udhcpc Note, we should refactor this to use a dynamically allocated array instead of this static one. We relied heavily on static arrays in Finit 1, when everything had to fit i shm. This is just legacy. Signed-off-by: Joachim Nilsson --- src/svc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/svc.h b/src/svc.h index fa922589..09d66d80 100644 --- a/src/svc.h +++ b/src/svc.h @@ -73,7 +73,7 @@ typedef enum { #define MAX_COND_LEN (MAX_ARG_LEN * 3) #define MAX_USER_LEN 16 #define MAX_NUM_FDS 64 /* Max number of I/O plugins */ -#define MAX_NUM_SVC_ARGS 32 +#define MAX_NUM_SVC_ARGS 64 /* Default kill delay (msec) after SIGTERM (svc->sighalt) that we SIGKILL processes */ #define SVC_TERM_TIMEOUT 3000