summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sbin/dhclient/dispatch.c4
-rw-r--r--usr.sbin/dhcrelay/dispatch.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sbin/dhclient/dispatch.c b/sbin/dhclient/dispatch.c
index e5181bc7d5f..690985c53ec 100644
--- a/sbin/dhclient/dispatch.c
+++ b/sbin/dhclient/dispatch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dispatch.c,v 1.28 2004/05/05 23:07:47 deraadt Exp $ */
+/* $OpenBSD: dispatch.c,v 1.29 2004/06/22 01:10:49 canacar Exp $ */
/*
* Copyright 2004 Henning Brauer <henning@openbsd.org>
@@ -218,7 +218,7 @@ another:
for (l = protocols; l; l = l->next) {
struct interface_info *ip;
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))
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))