aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--AUTHORS1
-rw-r--r--src/supervision/s6-svc.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/AUTHORS b/AUTHORS
index 5f685c9..7d76356 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -43,3 +43,4 @@ Thanks to:
Alex Kiernan <alex.kiernan@gmail.com>
Earl Chew <earl_chew@yahoo.com>
Saj Goonatilleke <saj@discourse.org>
+ Hoël Bézier <hoelbezier@riseup.net>
diff --git a/src/supervision/s6-svc.c b/src/supervision/s6-svc.c
index 0c67dee..c13b73b 100644
--- a/src/supervision/s6-svc.c
+++ b/src/supervision/s6-svc.c
@@ -150,7 +150,7 @@ int main (int argc, char const *const *argv)
int e = 0 ;
for (unsigned int i = 0 ; i < argc ; i++)
{
- switch (s6_svc_writectl(argv[0], S6_SUPERVISE_CTLDIR, data + 1, datalen - 1))
+ switch (s6_svc_writectl(argv[i], S6_SUPERVISE_CTLDIR, data + 1, datalen - 1))
{
case -1 : { strerr_warnwu2sys("control ", argv[i]) ; e = 111 ; break ; }
case -2 : { strerr_warnw3sys("something is wrong with the ", argv[i], "/" S6_SUPERVISE_CTLDIR " directory") ; e = 1 ; break ; }