From 2ff7dfc857e7362d14522ca176e983ec2d6a15e7 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Thu, 12 Sep 2024 15:34:54 +0000 Subject: bugfix: make lock-fd actually work! Signed-off-by: Laurent Bercot --- src/supervision/s6-supervise.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/supervision/s6-supervise.c b/src/supervision/s6-supervise.c index c0a3edb..deed9e5 100644 --- a/src/supervision/s6-supervise.c +++ b/src/supervision/s6-supervise.c @@ -291,8 +291,8 @@ static void trystart (void) [1] = { .type = CSPAWN_FA_MOVE }, } ; char lkfmt[UINT_FMT] ; - char const *cargv[7] = { S6_BINPREFIX "s6-setlock", "-d", lkfmt, "--", "./run", servicename, 0 } ; - size_t orig = 4 ; + char const *cargv[8] = { S6_BINPREFIX "s6-setlock", "-d", lkfmt, "--", SLCK, "./run", servicename, 0 } ; + size_t orig = 5 ; int notifyp[2] = { -1, -1 } ; unsigned int lk = 0, notif = 0 ; -- cgit 1.4.1