From: tedu Date: Sat, 6 Aug 2016 19:56:51 +0000 (+0000) Subject: reset timeout to null when relooping X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=7c2379871db38d24146f568ace622c30dfccd554;p=openbsd reset timeout to null when relooping --- 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 * @@ -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)