summaryrefslogtreecommitdiff
path: root/sbin/dhclient/dispatch.c
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 /sbin/dhclient/dispatch.c
parent4b709fc5a36affc1ac61ab832e31429fe6de933e (diff)
handle interface removals in the poll loop. ok henning@
Diffstat (limited to 'sbin/dhclient/dispatch.c')
-rw-r--r--sbin/dhclient/dispatch.c4
1 files changed, 2 insertions, 2 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))