diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-05-06 15:49:04 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-05-06 15:49:04 +0200 |
commit | 2d2778ca7e8b9eb2650cea6224e080a62fcc7224 (patch) | |
tree | ea15ca052f40ece16926eee1c65af0d6a07de21d /src/mds.c | |
parent | add strequals and startswith macros + add drop_privileges macro that drops the group before the user (diff) | |
download | mds-2d2778ca7e8b9eb2650cea6224e080a62fcc7224.tar.gz mds-2d2778ca7e8b9eb2650cea6224e080a62fcc7224.tar.bz2 mds-2d2778ca7e8b9eb2650cea6224e080a62fcc7224.tar.xz |
add monotone macro
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/mds.c')
-rw-r--r-- | src/mds.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |