summaryrefslogtreecommitdiff
path: root/src/supervision/s6-svc.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2015-10-12 14:04:28 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2015-10-12 14:04:28 +0000
commit3315cae54873f180a26a37a5aaccaae5febec96e (patch)
tree70d8ef37fe75831af01c2e84fa32b6b29d25acfa /src/supervision/s6-svc.c
parent162fcfac5bb4d2cd40f7adc1d2d9ae71d6c86b19 (diff)
downloads6-3315cae54873f180a26a37a5aaccaae5febec96e.tar.xz
Add SIGWINCH support to s6-supervise and s6-svc (-y)
Diffstat (limited to 'src/supervision/s6-svc.c')
-rw-r--r--src/supervision/s6-svc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/supervision/s6-svc.c b/src/supervision/s6-svc.c
index 467c174..cc92618 100644
--- a/src/supervision/s6-svc.c
+++ b/src/supervision/s6-svc.c
@@ -26,7 +26,7 @@ int main (int argc, char const *const *argv, char const *const *envp)
subgetopt_t l = SUBGETOPT_ZERO ;
for (;;)
{
- register int opt = subgetopt_r(argc, argv, "abqhkti12pcoduxOXT:w:", &l) ;
+ register int opt = subgetopt_r(argc, argv, "abqhkti12pcoduxOXyT:w:", &l) ;
if (opt == -1) break ;
switch (opt)
{
@@ -47,6 +47,7 @@ int main (int argc, char const *const *argv, char const *const *envp)
case 'x' :
case 'O' :
case 'X' :
+ case 'y' :
{
if (datalen >= DATASIZE) strerr_dief1x(100, "too many commands") ;
data[datalen++] = opt ;