From 2d2778ca7e8b9eb2650cea6224e080a62fcc7224 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 6 May 2014 15:49:04 +0200 Subject: add monotone macro MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/mds.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mds.c') diff --git a/src/mds.c b/src/mds.c index df8fb31..8b2423a 100644 --- a/src/mds.c +++ b/src/mds.c @@ -297,7 +297,7 @@ int spawn_and_respawn_server(int fd) if (pid) { /* Get the current time. (Start of child process.) */ - time_error = (clock_gettime(CLOCK_MONOTONIC, &time_start) < 0); + time_error = (monotone(&time_start) < 0); if (time_error) perror(*argv); @@ -313,7 +313,7 @@ int spawn_and_respawn_server(int fd) break; /* Get the current time. (End of child process.) */ - time_error |= (clock_gettime(CLOCK_MONOTONIC, &time_end) < 0); + time_error |= (monotone(&time_end) < 0); /* Do not respawn if we could not read the time. */ if (time_error) -- cgit v1.2.3-70-g09d2