diff options
author | 2016-08-06 19:56:51 +0000 | |
---|---|---|
committer | 2016-08-06 19:56:51 +0000 | |
commit | 7c2379871db38d24146f568ace622c30dfccd554 (patch) | |
tree | 16dd8409dd3a19df6c7bad7d13f2115a36f9f05b | |
parent | Use internal names for __errno, _memcpy, memset, and {,_}{set,long}jmp (diff) | |
download | wireguard-openbsd-7c2379871db38d24146f568ace622c30dfccd554.tar.xz wireguard-openbsd-7c2379871db38d24146f568ace622c30dfccd554.zip |
reset timeout to null when relooping
-rw-r--r-- | usr.sbin/rebound/rebound.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/rebound/rebound.c b/usr.sbin/rebound/rebound.c index f398afba898..fb67ac0d5bd 100644 --- a/usr.sbin/rebound/rebound.c +++ b/usr.sbin/rebound/rebound.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rebound.c,v 1.65 2016/07/02 17:09:09 tedu Exp $ */ +/* $OpenBSD: rebound.c,v 1.66 2016/08/06 19:56:51 tedu Exp $ */ /* * Copyright (c) 2015 Ted Unangst <tedu@openbsd.org> * @@ -710,6 +710,7 @@ main(int argc, char **argv) kevent(kq, &kev, 1, NULL, 0, NULL); /* wait for something to happen: HUP or child exiting */ + timeout = NULL; while (1) { r = kevent(kq, NULL, 0, &kev, 1, timeout); if (r == -1) |