tree-wide: use usec_add() and usec_sub_unsigned()

This commit is contained in:
Yu Watanabe
2021-03-05 07:10:08 +09:00
parent e6283cbf48
commit 496db33004
14 changed files with 30 additions and 36 deletions
+1 -1
View File
@@ -756,7 +756,7 @@ int wait_for_terminate_with_timeout(pid_t pid, usec_t timeout) {
/* Drop into a sigtimewait-based timeout. Waiting for the
* pid to exit. */
until = now(CLOCK_MONOTONIC) + timeout;
until = usec_add(now(CLOCK_MONOTONIC), timeout);
for (;;) {
usec_t n;
siginfo_t status = {};