summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2021-02-05 21:56:40 +0000
committerRoy Marples <roy@marples.name>2021-02-05 21:56:40 +0000
commit7b2fb275ee96bbecc6f0f268eb8879e17e16fc21 (patch)
tree42a6f2ad8b0f52858990a78d304fb3468cf216d2
parentdcfd7a23f002793a855156255e81662ef84064d3 (diff)
downloaddhcpcd-7b2fb275ee96bbecc6f0f268eb8879e17e16fc21.tar.xz
control fd can be both read and write.
-rw-r--r--src/control.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/control.c b/src/control.c
index ab75fe48..ff8957a1 100644
--- a/src/control.c
+++ b/src/control.c
@@ -210,7 +210,8 @@ control_handle_data(void *arg, unsigned short events)
{
struct fd_list *fd = arg;
- if (events != ELE_READ && events != ELE_WRITE)
+ if (events != ELE_READ && events != ELE_WRITE &&
+ events != (ELE_READ | ELE_WRITE))
logerrx("%s: unexpected event 0x%04x", __func__, events);
if (events & ELE_WRITE)