about summary refs log tree commit diff
path: root/src/supervision
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2024-09-12 15:34:54 +0000
committerLaurent Bercot <ska@appnovation.com>2024-09-12 15:34:54 +0000
commit2ff7dfc857e7362d14522ca176e983ec2d6a15e7 (patch)
tree951fd22ee032ddd3d03a125f376e26f29cd3a3cb /src/supervision
parente6fc9ae2bc49838760d1a5f072bcc70bbd900f21 (diff)
downloads6-2ff7dfc857e7362d14522ca176e983ec2d6a15e7.tar.gz
s6-2ff7dfc857e7362d14522ca176e983ec2d6a15e7.tar.xz
s6-2ff7dfc857e7362d14522ca176e983ec2d6a15e7.zip
bugfix: make lock-fd actually work! HEAD master
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/supervision')
-rw-r--r--src/supervision/s6-supervise.c4
1 files 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 ;