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/daemontools-extras/s6-log.c | |
parent | 2f8e7b245b7fe187c41ea3655fce7551cfd7a48c (diff) | |
download | s6-296cdd194fb36e4b080690f5f24228925722bf57.tar.xz |
Adapt to new stopwatch API
Diffstat (limited to 'src/daemontools-extras/s6-log.c')
-rw-r--r-- | src/daemontools-extras/s6-log.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/daemontools-extras/s6-log.c b/src/daemontools-extras/s6-log.c index 5477298..8596879 100644 --- a/src/daemontools-extras/s6-log.c +++ b/src/daemontools-extras/s6-log.c @@ -1184,8 +1184,8 @@ int main (int argc, char const *const *argv) if (linelimit && linelimit < LINELIMIT_MIN) linelimit = LINELIMIT_MIN ; if (compat_gflags && verbosity) strerr_warnw1x("options -t and -e are deprecated") ; if (!fd_sanitize()) strerr_diefu1sys(111, "ensure stdin/stdout/stderr are open") ; - tain_now_set_stopwatch() ; /* only for timeouts; wallclock is used for timestamping */ - if (!tain_now_g() && verbosity) strerr_warnwu1sys("read current time - timestamps may be wrong for a while") ; + if (!tain_now_set_stopwatch_g() && verbosity) + strerr_warnwu1sys("set monotonic clock and read current time - timestamps may be wrong for a while") ; if (ndelay_on(0) < 0) strerr_diefu3sys(111, "set std", "in", " non-blocking") ; if (ndelay_on(1) < 0) strerr_diefu3sys(111, "set std", "out", " non-blocking") ; script_firstpass(argv, &sellen, &actlen, &scriptlen, &gflags) ; |