diff options
author | Can Erkin Acar <canacar@cvs.openbsd.org> | 2004-06-22 01:10:50 +0000 |
---|---|---|
committer | Can Erkin Acar <canacar@cvs.openbsd.org> | 2004-06-22 01:10:50 +0000 |
commit | 924161f5d45884bdeafceddc3ae7d19afdb1e599 (patch) | |
tree | 4eecc02519cb1ed7b5a242b293926009a5b55d2f /usr.sbin/dhcrelay/dispatch.c | |
parent | 4b709fc5a36affc1ac61ab832e31429fe6de933e (diff) |
handle interface removals in the poll loop. ok henning@
Diffstat (limited to 'usr.sbin/dhcrelay/dispatch.c')
-rw-r--r-- | usr.sbin/dhcrelay/dispatch.c | 4 |
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)) |