summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2019-09-06 10:23:30 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2019-09-06 10:23:30 +0000
commit8d2b184503fe887c644a358beb5277a21bfdbfb8 (patch)
treebaef06a3ec0f1a6f6227c06ff32cd009681bfef7 /src
parent013919fa62208c5b795b1f7c156de0db05886684 (diff)
downloadexecline-8d2b184503fe887c644a358beb5277a21bfdbfb8.tar.xz
Adapt to new stopwatch APIs
Diffstat (limited to 'src')
-rw-r--r--src/execline/trap.c3
-rw-r--r--src/execline/wait.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/src/execline/trap.c b/src/execline/trap.c
index 2999fbf..85a3116 100644
--- a/src/execline/trap.c
+++ b/src/execline/trap.c
@@ -69,8 +69,7 @@ int main (int argc, char const **argv, char const *const *envp)
argv[argc1] = 0 ;
while (i--) argvs[i] = 0 ;
i = 0 ;
- tain_now_set_stopwatch() ;
- tain_now_g() ;
+ tain_now_set_stopwatch_g() ;
spfd = selfpipe_init() ;
if (spfd < 0) strerr_diefu1sys(111, "selfpipe_init") ;
diff --git a/src/execline/wait.c b/src/execline/wait.c
index 93c42f7..2fdbe80 100644
--- a/src/execline/wait.c
+++ b/src/execline/wait.c
@@ -67,8 +67,7 @@ static inline void mainloop (tain_t *deadline, int insist, actfunc_t_ref f, pid_
x.fd = selfpipe_init() ;
if (x.fd < 0) strerr_diefu1sys(111, "create selfpipe") ;
if (selfpipe_trap(SIGCHLD) < 0) strerr_diefu1sys(111, "trap SIGCHLD") ;
- tain_now_set_stopwatch() ;
- tain_now_g() ;
+ tain_now_set_stopwatch_g() ;
tain_add_g(deadline, deadline) ;
while ((*f)(tab, n))
{