From: Roy Marples Date: Fri, 5 Feb 2021 21:56:40 +0000 (+0000) Subject: control fd can be both read and write. X-Git-Tag: v10.0.0~107 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b2fb275ee96bbecc6f0f268eb8879e17e16fc21;p=thirdparty%2Fdhcpcd.git control fd can be both read and write. --- 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)