summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2019-01-23 13:01:32 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2019-01-23 13:01:32 +0000
commit0070815b71e9a583d11d5c4e001f676708e77963 (patch)
treeb439b406697f5aa39abdd1bc2a314295b30ab73a
parentd64412f8ac57cd0388e33c88663218235cc59f35 (diff)
downloads6-0070815b71e9a583d11d5c4e001f676708e77963.tar.xz
bugfix: correctly handle s6-svc -X
-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 bdc4730..6dd815e 100644
--- a/src/supervision/s6-supervise.c
+++ b/src/supervision/s6-supervise.c
@@ -620,8 +620,8 @@ static inline void handle_control (int fd)
else if (!r) break ;
else
{
- size_t pos = byte_chr("abqhkti12fFpcyroduxOX", 20, c) ;
- if (pos < 20) (*actions[state][V_a + pos])() ;
+ size_t pos = byte_chr("abqhkti12fFpcyroduxOX", 21, c) ;
+ if (pos < 21) (*actions[state][V_a + pos])() ;
}
}
}