diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2015-10-29 14:01:02 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2015-10-29 14:01:02 +0000 |
commit | a4e253ae2e7d21fefaf04ef9927371c007c59ce1 (patch) | |
tree | ff26f3012843dfcc4487f5c23c33e13f91eb85be /usr.sbin/rebound | |
parent | 3f852eb14a5c9e198ec2f5653c338977b3fc5914 (diff) |
put timeout nullification in correct spot
Diffstat (limited to 'usr.sbin/rebound')
-rw-r--r-- | usr.sbin/rebound/rebound.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/rebound/rebound.c b/usr.sbin/rebound/rebound.c index a7f13c8a7fd..913cba7aab0 100644 --- a/usr.sbin/rebound/rebound.c +++ b/usr.sbin/rebound/rebound.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rebound.c,v 1.38 2015/10/29 14:00:06 tedu Exp $ */ +/* $OpenBSD: rebound.c,v 1.39 2015/10/29 14:01:01 tedu Exp $ */ /* * Copyright (c) 2015 Ted Unangst <tedu@openbsd.org> * @@ -541,6 +541,8 @@ launch(const char *confname, int ud, int ld, int kq) } } + timeout = NULL; + if (stopaccepting) { EV_SET(&ch[0], ld, EVFILT_READ, EV_DELETE, 0, 0, NULL); kevent(kq, ch, 1, NULL, 0, NULL); @@ -554,7 +556,6 @@ launch(const char *confname, int ud, int ld, int kq) while (cachecount > cachemax) freecacheent(TAILQ_FIRST(&cachefifo)); - timeout = NULL; /* burn old cache entries */ while ((ent = TAILQ_FIRST(&cachefifo))) { if (timespeccmp(&ent->ts, &now, <=)) |