summaryrefslogtreecommitdiff
path: root/src/conn-tools/s6-ipcserverd.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2015-01-07 19:01:26 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2015-01-07 19:01:26 +0000
commite9be34c9b798141dd6c224cf33934904935c49b2 (patch)
tree969c243f85ef02d88bc4f54d9ab14cd323b7e9aa /src/conn-tools/s6-ipcserverd.c
parente3aeb3b63b9996bd06c20861e1dac1c9421d9312 (diff)
downloads6-networking-e9be34c9b798141dd6c224cf33934904935c49b2.tar.xz
Complete conversion of s6-ipcserver and s6-tcpserver (4 and 6)
to socketbinder + d model. With documentation (!)
Diffstat (limited to 'src/conn-tools/s6-ipcserverd.c')
-rw-r--r--src/conn-tools/s6-ipcserverd.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/conn-tools/s6-ipcserverd.c b/src/conn-tools/s6-ipcserverd.c
index 419b123..4afe5cc 100644
--- a/src/conn-tools/s6-ipcserverd.c
+++ b/src/conn-tools/s6-ipcserverd.c
@@ -20,7 +20,7 @@
#include <skalibs/iopause.h>
#include <skalibs/webipc.h>
-#define USAGE "s6-ipcserverd [ -q | -Q | -v ] [ -1 ] [ -P | -p ] [ -c maxconn ] [ -C localmaxconn ] prog..."
+#define USAGE "s6-ipcserverd [ -v verbosity ] [ -1 ] [ -P | -p ] [ -c maxconn ] [ -C localmaxconn ] prog..."
#define ABSOLUTE_MAXCONN 1000
@@ -303,18 +303,16 @@ int main (int argc, char const *const *argv, char const *const *envp)
int flag1 = 0 ;
for (;;)
{
- register int opt = subgetopt_r(argc, argv, "qQv1Ppc:C:", &l) ;
+ register int opt = subgetopt_r(argc, argv, "Pp1c:C:v:", &l) ;
if (opt == -1) break ;
switch (opt)
{
- case 'q' : verbosity = 0 ; break ;
- case 'Q' : verbosity = 1 ; break ;
- case 'v' : verbosity = 2 ; break ;
- case '1' : flag1 = 1 ; break ;
case 'P' : flaglookup = 0 ; break ;
case 'p' : flaglookup = 1 ; break ;
+ case '1' : flag1 = 1 ; break ;
case 'c' : if (!uint0_scan(l.arg, &maxconn)) dieusage() ; break ;
case 'C' : if (!uint0_scan(l.arg, &localmaxconn)) dieusage() ; break ;
+ case 'v' : if (!uint0_scan(l.arg, &verbosity)) dieusage() ; break ;
default : dieusage() ;
}
}