summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorCan Erkin Acar <canacar@cvs.openbsd.org>2004-06-22 01:10:50 +0000
committerCan Erkin Acar <canacar@cvs.openbsd.org>2004-06-22 01:10:50 +0000
commit924161f5d45884bdeafceddc3ae7d19afdb1e599 (patch)
tree4eecc02519cb1ed7b5a242b293926009a5b55d2f /usr.sbin
parent4b709fc5a36affc1ac61ab832e31429fe6de933e (diff)
handle interface removals in the poll loop. ok henning@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/dhcrelay/dispatch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/dhcrelay/dispatch.c b/usr.sbin/dhcrelay/dispatch.c
index 0caeb230a03..f228e88929e 100644
--- a/usr.sbin/dhcrelay/dispatch.c
+++ b/usr.sbin/dhcrelay/dispatch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dispatch.c,v 1.3 2004/05/04 21:23:10 deraadt Exp $ */
+/* $OpenBSD: dispatch.c,v 1.4 2004/06/22 01:10:49 canacar Exp $ */
/*
* Copyright 2004 Henning Brauer <henning@openbsd.org>
@@ -217,7 +217,7 @@ another:
for (l = protocols; l; l = l->next) {
struct interface_info *ip = l->local;
- if ((fds[i].revents & POLLIN)) {
+ if ((fds[i].revents & (POLLIN | POLLHUP))) {
fds[i].revents = 0;
if (ip && (l->handler != got_one ||
!ip->dead))