about summary refs log tree commit diff
path: root/src/pipe-tools
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2019-09-06 13:03:11 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2019-09-06 13:03:11 +0000
commit296cdd194fb36e4b080690f5f24228925722bf57 (patch)
tree497124e5faea03f6583aa1a2deb5e8953cf68aa8 /src/pipe-tools
parent2f8e7b245b7fe187c41ea3655fce7551cfd7a48c (diff)
downloads6-296cdd194fb36e4b080690f5f24228925722bf57.tar.gz
s6-296cdd194fb36e4b080690f5f24228925722bf57.tar.xz
s6-296cdd194fb36e4b080690f5f24228925722bf57.zip
Adapt to new stopwatch API
Diffstat (limited to 'src/pipe-tools')
-rw-r--r--src/pipe-tools/s6-ftrig-listen.c3
-rw-r--r--src/pipe-tools/s6-ftrig-listen1.c3
-rw-r--r--src/pipe-tools/s6-ftrig-wait.c3
3 files changed, 3 insertions, 6 deletions
diff --git a/src/pipe-tools/s6-ftrig-listen.c b/src/pipe-tools/s6-ftrig-listen.c
index 582e60c..993a914 100644
--- a/src/pipe-tools/s6-ftrig-listen.c
+++ b/src/pipe-tools/s6-ftrig-listen.c
@@ -59,8 +59,7 @@ int main (int argc, char const **argv, char const *const *envp)
   argc1 = el_semicolon(argv) ;
   if (!argc1 || (argc1 & 1) || (argc == argc1 + 1)) dieusage() ;
   if (argc1 >= argc) strerr_dief1x(100, "unterminated fifodir+regex block") ;
-  tain_now_set_stopwatch() ;
-  tain_now_g() ;
+  tain_now_set_stopwatch_g() ;
   tain_add_g(&deadline, &tto) ;
   x[0].fd = selfpipe_init() ;
   if (x[0].fd < 0) strerr_diefu1sys(111, "selfpipe_init") ;
diff --git a/src/pipe-tools/s6-ftrig-listen1.c b/src/pipe-tools/s6-ftrig-listen1.c
index 1acaf6b..b04808c 100644
--- a/src/pipe-tools/s6-ftrig-listen1.c
+++ b/src/pipe-tools/s6-ftrig-listen1.c
@@ -55,8 +55,7 @@ int main (int argc, char const *const *argv, char const *const *envp)
   }
   if (argc < 3) strerr_dieusage(100, USAGE) ;
 
-  tain_now_set_stopwatch() ;
-  tain_now_g() ;
+  tain_now_set_stopwatch_g() ;
   tain_add_g(&deadline, &tto) ;
 
   if (!ftrigr_startf_g(&a, &deadline)) strerr_diefu1sys(111, "ftrigr_startf") ;
diff --git a/src/pipe-tools/s6-ftrig-wait.c b/src/pipe-tools/s6-ftrig-wait.c
index 1e852db..e703127 100644
--- a/src/pipe-tools/s6-ftrig-wait.c
+++ b/src/pipe-tools/s6-ftrig-wait.c
@@ -36,8 +36,7 @@ int main (int argc, char const *const *argv)
   }
   if (argc < 2) strerr_dieusage(100, USAGE) ;
 
-  tain_now_set_stopwatch() ;
-  tain_now_g() ;
+  tain_now_set_stopwatch_g() ;
   tain_add_g(&deadline, &tto) ;
 
   if (!ftrigr_startf_g(&a, &deadline)) strerr_diefu1sys(111, "ftrigr_startf") ;