From c41e2c561c4be340eeadc97ad9a7e0279aa3959f Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 8 Jan 2016 13:17:55 +0000 Subject: Use bracket expression instead of alternation in svlisten regex --- src/supervision/s6_svlisten_loop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/supervision/s6_svlisten_loop.c b/src/supervision/s6_svlisten_loop.c index 00e911f..f9c603f 100644 --- a/src/supervision/s6_svlisten_loop.c +++ b/src/supervision/s6_svlisten_loop.c @@ -29,7 +29,7 @@ void s6_svlisten_init (int argc, char const *const *argv, s6_svlisten_t *foo, ui byte_copy(s, len, argv[i]) ; s[len] = '/' ; byte_copy(s + len + 1, sizeof(S6_SUPERVISE_EVENTDIR), S6_SUPERVISE_EVENTDIR) ; - foo->ids[i] = ftrigr_subscribe_g(&foo->a, s, "D|u|U|d", FTRIGR_REPEAT, deadline) ; + foo->ids[i] = ftrigr_subscribe_g(&foo->a, s, "[DuUd]", FTRIGR_REPEAT, deadline) ; if (!foo->ids[i]) strerr_diefu2sys(111, "subscribe to events for ", argv[i]) ; if (!s6_svstatus_read(argv[i], &status)) strerr_diefu1sys(111, "s6_svstatus_read") ; bitarray_poke(foo->upstate, i, status.pid && !status.flagfinishing) ; -- cgit v1.2.3