diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2019-09-06 13:03:11 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2019-09-06 13:03:11 +0000 |
commit | 296cdd194fb36e4b080690f5f24228925722bf57 (patch) | |
tree | 497124e5faea03f6583aa1a2deb5e8953cf68aa8 /src/supervision | |
parent | 2f8e7b245b7fe187c41ea3655fce7551cfd7a48c (diff) | |
download | s6-296cdd194fb36e4b080690f5f24228925722bf57.tar.xz |
Adapt to new stopwatch API
Diffstat (limited to 'src/supervision')
-rw-r--r-- | src/supervision/s6-notifyoncheck.c | 3 | ||||
-rw-r--r-- | src/supervision/s6-supervise.c | 3 | ||||
-rw-r--r-- | src/supervision/s6-svlisten.c | 3 | ||||
-rw-r--r-- | src/supervision/s6-svlisten1.c | 3 | ||||
-rw-r--r-- | src/supervision/s6-svscan.c | 3 | ||||
-rw-r--r-- | src/supervision/s6-svwait.c | 3 |
6 files changed, 6 insertions, 12 deletions
diff --git a/src/supervision/s6-notifyoncheck.c b/src/supervision/s6-notifyoncheck.c index 71489ea..71b562f 100644 --- a/src/supervision/s6-notifyoncheck.c +++ b/src/supervision/s6-notifyoncheck.c @@ -140,8 +140,7 @@ int main (int argc, char const *const *argv, char const *const *envp) if (fcntl(fd, F_GETFD) < 0) strerr_dief2sys(111, "notification-fd", " sanity check failed") ; - tain_now_set_stopwatch() ; - tain_now_g() ; + tain_now_set_stopwatch_g() ; tain_add_g(&globaldeadline, &globaldeadline) ; diff --git a/src/supervision/s6-supervise.c b/src/supervision/s6-supervise.c index dd5025e..5c431db 100644 --- a/src/supervision/s6-supervise.c +++ b/src/supervision/s6-supervise.c @@ -669,8 +669,7 @@ int main (int argc, char const *const *argv) else if (errno != ENOENT) strerr_diefu1sys(111, "access ./down") ; - tain_now_set_stopwatch() ; - tain_now_g() ; + tain_now_set_stopwatch_g() ; settimeout(0) ; tain_wallclock_read(&status.stamp) ; status.readystamp = status.stamp ; diff --git a/src/supervision/s6-svlisten.c b/src/supervision/s6-svlisten.c index 2ce08cf..c8af1f4 100644 --- a/src/supervision/s6-svlisten.c +++ b/src/supervision/s6-svlisten.c @@ -56,8 +56,7 @@ int main (int argc, char const **argv, char const *const *envp) strerr_warnw3x("-o is unsupported when combined with -", wantready ? "R" : "r", "- using -a instead") ; } - tain_now_set_stopwatch() ; - tain_now_g() ; + tain_now_set_stopwatch_g() ; tain_add_g(&deadline, &tto) ; spfd = s6_svlisten_selfpipe_init() ; diff --git a/src/supervision/s6-svlisten1.c b/src/supervision/s6-svlisten1.c index d38d771..eaad48c 100644 --- a/src/supervision/s6-svlisten1.c +++ b/src/supervision/s6-svlisten1.c @@ -45,8 +45,7 @@ int main (int argc, char const *const *argv, char const *const *envp) if (t) tain_from_millisecs(&tto, t) ; else tto = tain_infinite_relative ; } if (argc < 2) dieusage() ; - tain_now_set_stopwatch() ; - tain_now_g() ; + tain_now_set_stopwatch_g() ; tain_add_g(&deadline, &tto) ; spfd = s6_svlisten_selfpipe_init() ; s6_svlisten_init(1, argv, &foo, &id, &upstate, &readystate, &deadline) ; diff --git a/src/supervision/s6-svscan.c b/src/supervision/s6-svscan.c index 4d00743..ffc257d 100644 --- a/src/supervision/s6-svscan.c +++ b/src/supervision/s6-svscan.c @@ -520,8 +520,7 @@ int main (int argc, char const *const *argv) { struct svinfo_s blob[max] ; /* careful with that stack, Eugene */ services = blob ; - tain_now_set_stopwatch() ; /* now try a backwards clock jump, bitch */ - tain_now_g() ; + tain_now_set_stopwatch_g() ; /* Loop phase. diff --git a/src/supervision/s6-svwait.c b/src/supervision/s6-svwait.c index cda3591..2fc8fcb 100644 --- a/src/supervision/s6-svwait.c +++ b/src/supervision/s6-svwait.c @@ -41,8 +41,7 @@ int main (int argc, char const *const *argv) } if (!argc) dieusage() ; - tain_now_set_stopwatch() ; - tain_now_g() ; + tain_now_set_stopwatch_g() ; tain_add_g(&deadline, &tto) ; { |