about summary refs log tree commit diff
path: root/src/conn-tools
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2019-09-04 17:52:22 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2019-09-04 17:52:22 +0000
commit2f8e7b245b7fe187c41ea3655fce7551cfd7a48c (patch)
tree7cab69ff654641d465353e5c04d9e6d6aa813e8e /src/conn-tools
parenta359fda48970b7d02ef914e3f7aa0a9c9ff73f7f (diff)
downloads6-2f8e7b245b7fe187c41ea3655fce7551cfd7a48c.tar.gz
s6-2f8e7b245b7fe187c41ea3655fce7551cfd7a48c.tar.xz
s6-2f8e7b245b7fe187c41ea3655fce7551cfd7a48c.zip
Separate wall clocks from stopwatches
Diffstat (limited to 'src/conn-tools')
-rw-r--r--src/conn-tools/s6-ioconnect.c1
-rw-r--r--src/conn-tools/s6-sudoc.c1
-rw-r--r--src/conn-tools/s6-sudod.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/src/conn-tools/s6-ioconnect.c b/src/conn-tools/s6-ioconnect.c
index 05a3fdf..49d682c 100644
--- a/src/conn-tools/s6-ioconnect.c
+++ b/src/conn-tools/s6-ioconnect.c
@@ -106,6 +106,7 @@ int main (int argc, char const *const *argv)
     if (!iobuffer_init(&b[i], a[i][0].fd, a[i][1].fd)) strerr_diefu1sys(111, "iobuffer_init") ;
   }
   if (sig_ignore(SIGPIPE) == -1) strerr_diefu1sys(111, "sig_ignore") ;
+  tain_now_set_stopwatch() ;
   tain_now_g() ;
   x[0].fd = selfpipe_init() ;
   if (x[0].fd < 0) strerr_diefu1sys(111, "selfpipe_init") ;
diff --git a/src/conn-tools/s6-sudoc.c b/src/conn-tools/s6-sudoc.c
index d46e398..79d32f0 100644
--- a/src/conn-tools/s6-sudoc.c
+++ b/src/conn-tools/s6-sudoc.c
@@ -53,6 +53,7 @@ int main (int argc, char const *const *argv, char const *const *envp)
   if (!fd_sanitize() || !fd_ensure_open(2, 1))
     strerr_diefu1sys(111, "sanitize stdin/stdout/stderr") ;
 
+  tain_now_set_stopwatch() ;
   tain_now_g() ;
   tain_add_g(&deadline, &deadline) ;
   {
diff --git a/src/conn-tools/s6-sudod.c b/src/conn-tools/s6-sudod.c
index a7c5668..9cc7148 100644
--- a/src/conn-tools/s6-sudod.c
+++ b/src/conn-tools/s6-sudod.c
@@ -55,6 +55,7 @@ int main (int argc, char const *const *argv, char const *const *envp)
   if ((ndelay_on(0) < 0) || (ndelay_on(1) < 0))
     strerr_diefu1sys(111, "make socket non-blocking") ;
 
+  tain_now_set_stopwatch() ;
   tain_now_g() ;
   tain_add_g(&deadline, &deadline) ;
   buffer_putnoflush(buffer_1small, S6_SUDO_BANNERB, S6_SUDO_BANNERB_LEN) ;