diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2020-11-26 09:47:02 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2020-11-26 09:47:02 +0000 |
commit | 26cd94b2a8f6da396058b6c5d6446e237ec9d78f (patch) | |
tree | 13706df3bc9657d911a26133625044ae1e1acb30 /src/conn-tools/s6-tcpserver6-socketbinder.c | |
parent | 51a612c34446e10a086947c410aa206fa978d169 (diff) | |
download | s6-networking-26cd94b2a8f6da396058b6c5d6446e237ec9d78f.tar.xz |
Convert to new exec.h syntax
Diffstat (limited to 'src/conn-tools/s6-tcpserver6-socketbinder.c')
-rw-r--r-- | src/conn-tools/s6-tcpserver6-socketbinder.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/conn-tools/s6-tcpserver6-socketbinder.c b/src/conn-tools/s6-tcpserver6-socketbinder.c index 1c4835b..683dc7c 100644 --- a/src/conn-tools/s6-tcpserver6-socketbinder.c +++ b/src/conn-tools/s6-tcpserver6-socketbinder.c @@ -1,19 +1,22 @@ /* ISC license. */ +#include <skalibs/nonposix.h> #include <stdint.h> #include <unistd.h> #include <sys/socket.h> + #include <skalibs/types.h> #include <skalibs/sgetopt.h> #include <skalibs/fmtscan.h> #include <skalibs/strerr2.h> #include <skalibs/djbunix.h> #include <skalibs/socket.h> +#include <skalibs/exec.h> #define USAGE "s6-tcpserver6-socketbinder [ -d | -D ] [ -b backlog ] [ -M | -m ] [ -B ] ip6 port prog..." #define dieusage() strerr_dieusage(100, USAGE) -int main (int argc, char const *const *argv, char const *const *envp) +int main (int argc, char const *const *argv) { unsigned int backlog = SOMAXCONN ; int flagreuse = 1 ; @@ -51,5 +54,5 @@ int main (int argc, char const *const *argv, char const *const *envp) if (backlog && socket_listen(0, backlog) < 0) strerr_diefu5sys(111, "listen to ", argv[0], ":", argv[1], " ") ; - xpathexec_run(argv[2], argv + 2, envp) ; + xexec(argv+2) ; } |