summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2016-08-06 19:56:52 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2016-08-06 19:56:52 +0000
commit43ef71b12a0c5002f3ed26455b7e72ddb4e722be (patch)
tree01fe8a143457997ed23b2ad9cad78ef1dadb49c9
parent909af2f4bebc5ee3531baeec07e91420bcd4d2f4 (diff)
reset timeout to null when relooping
-rw-r--r--usr.sbin/rebound/rebound.c3
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)