summaryrefslogtreecommitdiff
path: root/src/conn-tools
diff options
context:
space:
mode:
Diffstat (limited to 'src/conn-tools')
-rw-r--r--src/conn-tools/s6-ident-client.c1
-rw-r--r--src/conn-tools/s6-tcpclient.c1
-rw-r--r--src/conn-tools/s6-tcpserver-access.c1
-rw-r--r--src/conn-tools/s6-tlsc.c1
-rw-r--r--src/conn-tools/s6-tlsd.c1
5 files changed, 5 insertions, 0 deletions
diff --git a/src/conn-tools/s6-ident-client.c b/src/conn-tools/s6-ident-client.c
index 1d24904..fb88830 100644
--- a/src/conn-tools/s6-ident-client.c
+++ b/src/conn-tools/s6-ident-client.c
@@ -50,6 +50,7 @@ int main (int argc, char const *const *argv)
if (ip46_is6(&ra) != ip46_is6(&la))
strerr_dief1x(100, "address family mismatch") ;
+ tain_now_set_stopwatch() ;
tain_now_g() ;
tain_add_g(&deadline, &deadline) ;
diff --git a/src/conn-tools/s6-tcpclient.c b/src/conn-tools/s6-tcpclient.c
index 5fdd7f0..3e42fd0 100644
--- a/src/conn-tools/s6-tcpclient.c
+++ b/src/conn-tools/s6-tcpclient.c
@@ -111,6 +111,7 @@ int main (int argc, char const *const *argv)
#endif
if (!uint160_scan(argv[1], &remoteport))
strerr_dief2x(100, "invalid port number: ", argv[1]) ;
+ tain_now_set_stopwatch() ;
tain_now_g() ;
if (flags.timeout) tain_addsec_g(&deadline, flags.timeout) ;
else tain_add_g(&deadline, &tain_infinite_relative) ;
diff --git a/src/conn-tools/s6-tcpserver-access.c b/src/conn-tools/s6-tcpserver-access.c
index 80360e5..9b58b69 100644
--- a/src/conn-tools/s6-tcpserver-access.c
+++ b/src/conn-tools/s6-tcpserver-access.c
@@ -133,6 +133,7 @@ int main (int argc, char const *const *argv, char const *const *envp)
if (socket_tcpnodelay(1) < 0)
if (verbosity) strerr_warnwu1sys("socket_tcpnodelay") ;
}
+ tain_now_set_stopwatch() ;
tain_now_g() ;
tain_add_g(&deadline, &tto) ;
if (!buffer_timed_flush_g(buffer_1small, &deadline))
diff --git a/src/conn-tools/s6-tlsc.c b/src/conn-tools/s6-tlsc.c
index cbac1eb..805cc7f 100644
--- a/src/conn-tools/s6-tlsc.c
+++ b/src/conn-tools/s6-tlsc.c
@@ -93,5 +93,6 @@ int main (int argc, char const *const *argv, char const *const *envp)
if (x && !gid0_scan(x, &gid)) strerr_dieinvalid(100, "TLS_GID") ;
}
+ tain_now_set_stopwatch() ;
return s6tlsc(argv, envp, &tto, preoptions, options, uid, gid, verbosity, servername, fds) ;
}
diff --git a/src/conn-tools/s6-tlsd.c b/src/conn-tools/s6-tlsd.c
index 6746fa3..d70d2c7 100644
--- a/src/conn-tools/s6-tlsd.c
+++ b/src/conn-tools/s6-tlsd.c
@@ -75,5 +75,6 @@ int main (int argc, char const *const *argv, char const *const *envp)
if (x && !gid0_scan(x, &gid)) strerr_dieinvalid(100, "TLS_GID") ;
}
+ tain_now_set_stopwatch() ;
return s6tlsd(argv, envp, &tto, preoptions, options, uid, gid, verbosity) ;
}