diff options
author | 2013-03-30 08:06:42 +0000 | |
---|---|---|
committer | 2013-03-30 08:06:42 +0000 | |
commit | 67c725e1fdf30c51196a61097a5dea6a6ce087f8 (patch) | |
tree | 7c3b9baa830629669c1c4a598e479388f9cc2ad2 /lib/libc | |
parent | reorder include search directories. cuts lookups by quite a bit. (diff) | |
download | wireguard-openbsd-67c725e1fdf30c51196a61097a5dea6a6ce087f8.tar.xz wireguard-openbsd-67c725e1fdf30c51196a61097a5dea6a6ce087f8.zip |
don't ever skip reload the very first time; detective work by rpe@; ok eric@
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/asr/asr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/asr/asr.c b/lib/libc/asr/asr.c index 056253c092e..8d47653226c 100644 --- a/lib/libc/asr/asr.c +++ b/lib/libc/asr/asr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: asr.c,v 1.15 2013/03/27 07:40:41 eric Exp $ */ +/* $OpenBSD: asr.c,v 1.16 2013/03/30 08:06:42 otto Exp $ */ /* * Copyright (c) 2010-2012 Eric Faurot <eric@openbsd.org> * @@ -414,7 +414,7 @@ asr_check_reload(struct asr *asr) if (clock_gettime(CLOCK_MONOTONIC, &tp) == -1) return; - if ((tp.tv_sec - asr->a_rtime) < RELOAD_DELAY) + if ((tp.tv_sec - asr->a_rtime) < RELOAD_DELAY && asr->a_rtime != 0) return; asr->a_rtime = tp.tv_sec; |