summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2019-09-04 11:43:52 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2019-09-04 11:43:52 +0000
commitf045d411e17bc7afbc2dd7a0ea5d415ffa65ecfb (patch)
treed568cbc7b46cb73201ce5e87a7130811456eb856
parent4a4ae93e7aacdffa23d7e7094ade5e4db6ffc282 (diff)
downloads6-rc-f045d411e17bc7afbc2dd7a0ea5d415ffa65ecfb.tar.xz
Use stopwatches
-rw-r--r--src/s6-rc/s6-rc-dryrun.c1
-rw-r--r--src/s6-rc/s6-rc-fdholder-filler.c1
-rw-r--r--src/s6-rc/s6-rc-format-upgrade.c1
-rw-r--r--src/s6-rc/s6-rc-init.c1
-rw-r--r--src/s6-rc/s6-rc-update.c1
-rw-r--r--src/s6-rc/s6-rc.c1
6 files changed, 6 insertions, 0 deletions
diff --git a/src/s6-rc/s6-rc-dryrun.c b/src/s6-rc/s6-rc-dryrun.c
index 71ce9da..a10acfd 100644
--- a/src/s6-rc/s6-rc-dryrun.c
+++ b/src/s6-rc/s6-rc-dryrun.c
@@ -44,6 +44,7 @@ int main (int argc, char const *const *argv)
}
buffer_putflush(buffer_1, "\n", 1) ;
}
+ tain_now_set_stopwatch() ;
tain_now_g() ;
tain_add_g(&deadline, &deadline) ;
deepsleepuntil_g(&deadline) ;
diff --git a/src/s6-rc/s6-rc-fdholder-filler.c b/src/s6-rc/s6-rc-fdholder-filler.c
index ad5b58b..987f3c6 100644
--- a/src/s6-rc/s6-rc-fdholder-filler.c
+++ b/src/s6-rc/s6-rc-fdholder-filler.c
@@ -86,6 +86,7 @@ int main (int argc, char const *const *argv)
s6_fdholder_fd_t dump[n<<1] ;
close(0) ;
s6_fdholder_init(&a, 6) ;
+ tain_now_set_stopwatch() ;
tain_now_g() ;
tain_add_g(&deadline, &deadline) ;
for (; i < n ; i++)
diff --git a/src/s6-rc/s6-rc-format-upgrade.c b/src/s6-rc/s6-rc-format-upgrade.c
index 3b399e3..12c25e1 100644
--- a/src/s6-rc/s6-rc-format-upgrade.c
+++ b/src/s6-rc/s6-rc-format-upgrade.c
@@ -59,6 +59,7 @@ int main (int argc, char const *const *argv, char const *const *envp)
if (argv[0][0] != '/')
strerr_dief2x(100, argv[0], " is not an absolute path") ;
+ tain_now_set_stopwatch() ;
tain_now_g() ;
tain_add_g(&deadline, &deadline) ;
diff --git a/src/s6-rc/s6-rc-init.c b/src/s6-rc/s6-rc-init.c
index fd08e89..370de32 100644
--- a/src/s6-rc/s6-rc-init.c
+++ b/src/s6-rc/s6-rc-init.c
@@ -67,6 +67,7 @@ int main (int argc, char const *const *argv)
if (strchr(prefix, '/') || strchr(prefix, '\n'))
strerr_dief1x(100, "prefix cannot contain a / or a newline") ;
+ tain_now_set_stopwatch() ;
tain_now_g() ;
tain_add_g(&deadline, &deadline) ;
diff --git a/src/s6-rc/s6-rc-update.c b/src/s6-rc/s6-rc-update.c
index 942db3c..02e3d13 100644
--- a/src/s6-rc/s6-rc-update.c
+++ b/src/s6-rc/s6-rc-update.c
@@ -603,6 +603,7 @@ int main (int argc, char const *const *argv, char const *const *envp)
size_t prefixlen = 0 ;
char dbfn[livelen + 10] ;
+ tain_now_set_stopwatch() ;
tain_now_g() ;
tain_add_g(&deadline, &deadline) ;
diff --git a/src/s6-rc/s6-rc.c b/src/s6-rc/s6-rc.c
index 49a7fe7..1856d8c 100644
--- a/src/s6-rc/s6-rc.c
+++ b/src/s6-rc/s6-rc.c
@@ -641,6 +641,7 @@ int main (int argc, char const *const *argv)
if (what == 2) return print_services() ;
+ tain_now_set_stopwatch() ;
tain_now_g() ;
tain_add_g(&deadline, &deadline) ;