From 7c2379871db38d24146f568ace622c30dfccd554 Mon Sep 17 00:00:00 2001 From: tedu Date: Sat, 6 Aug 2016 19:56:51 +0000 Subject: [PATCH] reset timeout to null when relooping --- usr.sbin/rebound/rebound.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.20.1