diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2015-11-10 11:52:19 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2015-11-10 11:52:19 +0000 |
commit | 2078ad6352b4149a4ca1388f4557affd56ac6901 (patch) | |
tree | c58b921afcbc3bdb3f5731d0994b53cd32e620f3 /src | |
parent | 3999535246daf92954900bf0a531c7f4f5ca8a5a (diff) | |
download | s6-portable-utils-2078ad6352b4149a4ca1388f4557affd56ac6901.tar.xz |
s6-pause bugfix: invocation with options (thanks Gorka Lertxundi)
Diffstat (limited to 'src')
-rw-r--r-- | src/skaembutils/s6-pause.c | 12 |
1 files changed, 6 insertions, 6 deletions
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 ; |