From 2078ad6352b4149a4ca1388f4557affd56ac6901 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 10 Nov 2015 11:52:19 +0000 Subject: s6-pause bugfix: invocation with options (thanks Gorka Lertxundi) --- src/skaembutils/s6-pause.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/skaembutils/s6-pause.c') diff --git a/src/skaembutils/s6-pause.c b/src/skaembutils/s6-pause.c index acb1f41..df09594 100644 --- a/src/skaembutils/s6-pause.c +++ b/src/skaembutils/s6-pause.c @@ -25,12 +25,12 @@ int main (int argc, char const *const *argv) if (opt == -1) break ; switch (opt) { - case 't' : if (nsig >= MAX) dieusage() ; sigs[nsig++] = SIGTERM ; - case 'h' : if (nsig >= MAX) dieusage() ; sigs[nsig++] = SIGHUP ; - case 'a' : if (nsig >= MAX) dieusage() ; sigs[nsig++] = SIGALRM ; - case 'q' : if (nsig >= MAX) dieusage() ; sigs[nsig++] = SIGQUIT ; - case 'b' : if (nsig >= MAX) dieusage() ; sigs[nsig++] = SIGABRT ; - case 'i' : if (nsig >= MAX) dieusage() ; sigs[nsig++] = SIGINT ; + case 't' : if (nsig >= MAX) dieusage() ; sigs[nsig++] = SIGTERM ; break ; + case 'h' : if (nsig >= MAX) dieusage() ; sigs[nsig++] = SIGHUP ; break ; + case 'a' : if (nsig >= MAX) dieusage() ; sigs[nsig++] = SIGALRM ; break ; + case 'q' : if (nsig >= MAX) dieusage() ; sigs[nsig++] = SIGQUIT ; break ; + case 'b' : if (nsig >= MAX) dieusage() ; sigs[nsig++] = SIGABRT ; break ; + case 'i' : if (nsig >= MAX) dieusage() ; sigs[nsig++] = SIGINT ; break ; case 'p' : { unsigned int n ; -- cgit v1.2.3