Skip to content

Commit 927acdb

Browse files
committed
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 <[email protected]>
1 parent 6f6267f commit 927acdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/svc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ typedef enum {
9494
SVC_NOTIFY_S6,
9595
} svc_notify_t;
9696

97-
#define MAX_ID_LEN 16
97+
#define MAX_ID_LEN 65
9898
#define MAX_ARG_LEN 64
9999
#define MAX_CMD_LEN 256
100100
#define MAX_IDENT_LEN (MAX_ARG_LEN + MAX_ID_LEN + 1)

0 commit comments

Comments
 (0)