From 0070815b71e9a583d11d5c4e001f676708e77963 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 23 Jan 2019 13:01:32 +0000 Subject: bugfix: correctly handle s6-svc -X --- src/supervision/s6-supervise.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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])() ; } } } -- cgit v1.2.3