about summary refs log tree commit diff
path: root/src/supervision
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2016-01-08 13:17:55 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2016-01-08 13:17:55 +0000
commitc41e2c561c4be340eeadc97ad9a7e0279aa3959f (patch)
tree60a24a012d16392801fa692bcff763087370eaee /src/supervision
parentbb97405b8709827702891e50b1f4775842f2b48c (diff)
downloads6-c41e2c561c4be340eeadc97ad9a7e0279aa3959f.tar.gz
s6-c41e2c561c4be340eeadc97ad9a7e0279aa3959f.tar.xz
s6-c41e2c561c4be340eeadc97ad9a7e0279aa3959f.zip
Use bracket expression instead of alternation in svlisten regex v2.2.4.3
Diffstat (limited to 'src/supervision')
-rw-r--r--src/supervision/s6_svlisten_loop.c2
1 files changed, 1 insertions, 1 deletions
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) ;