mirror of
https://github.com/troglobit/finit.git
synced 2026-11-08 16:11:10 +00:00
Increase MAX_ID_LEN to support longer service identifiers
Allow service IDs up to 64 characters to support SHA-256 hashes, UUIDs, and other long unique identifiers. This increases memory usage by ~98 bytes per service instance, which is negligible for typical deployments. The IDENT column width in initctl output adapts dynamically based on actual ID lengths in use, so short IDs remain unaffected. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 file changed
+1
-1
@@ -94,7 +94,7 @@ typedef enum {
|
|||||||
SVC_NOTIFY_S6,
|
SVC_NOTIFY_S6,
|
||||||
} svc_notify_t;
|
} svc_notify_t;
|
||||||
|
|
||||||
#define MAX_ID_LEN 16
|
#define MAX_ID_LEN 65
|
||||||
#define MAX_ARG_LEN 64
|
#define MAX_ARG_LEN 64
|
||||||
#define MAX_CMD_LEN 256
|
#define MAX_CMD_LEN 256
|
||||||
#define MAX_IDENT_LEN (MAX_ARG_LEN + MAX_ID_LEN + 1)
|
#define MAX_IDENT_LEN (MAX_ARG_LEN + MAX_ID_LEN + 1)
|
||||||
|
|||||||
Reference in new issue
Block a user