summaryrefslogtreecommitdiff
path: root/src/tls/s6-tlsd.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-11-10 11:28:19 +0000
committerLaurent Bercot <ska@appnovation.com>2023-11-10 11:28:19 +0000
commit1e10d30b41b65dbd520e01adc5fe686cb92b0f12 (patch)
tree32af8327cb6bb9aa6bbd5e20ee7a2cc1f9c95263 /src/tls/s6-tlsd.c
parentc930181234bfb31fba0136d866e6e75633acafe0 (diff)
downloads6-networking-1e10d30b41b65dbd520e01adc5fe686cb92b0f12.tar.xz
Prepare for 2.7.0.0. Better s6-tlsc-io interface.
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/tls/s6-tlsd.c')
-rw-r--r--src/tls/s6-tlsd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tls/s6-tlsd.c b/src/tls/s6-tlsd.c
index a1c19bf..85c0d9f 100644
--- a/src/tls/s6-tlsd.c
+++ b/src/tls/s6-tlsd.c
@@ -17,10 +17,10 @@ int main (int argc, char const *const *argv)
unsigned int verbosity = 1 ;
unsigned int kimeout = 0 ;
unsigned int snilevel = 0 ;
- int p[4][2] = { [3] = { [0] = 0, [1] = 1 } } ;
uint32_t coptions = 0 ;
uint32_t poptions = 1 ;
pid_t pid ;
+ int p[8] = { [6] = 0, [7] = 1 } ;
char const *newargv[S6TLS_PREP_IO_ARGC] ;
char buf[S6TLS_PREP_IO_BUFLEN] ;
PROG = "s6-tlsd" ;
@@ -48,10 +48,10 @@ int main (int argc, char const *const *argv)
}
if (!argc) dieusage() ;
- if (pipe(p[0]) == -1 || pipe(p[1]) == -1 || pipe(p[2]) == -1)
+ if (pipe(p) == -1 || pipe(p+2) == -1 || pipe(p+4) == -1)
strerr_diefu1sys(111, "create pipe") ;
s6tls_prep_tlsdio(newargv, buf, p, coptions, verbosity, kimeout, snilevel) ;
- pid = s6tls_io_spawn(newargv, p) ;
+ pid = s6tls_io_spawn(newargv, p, 0) ;
if (!pid) strerr_diefu2sys(111, "spawn ", newargv[0]) ;
s6tls_sync_and_exec_app(argv, p, pid, poptions) ;
}