]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
control fd can be both read and write.
authorRoy Marples <roy@marples.name>
Fri, 5 Feb 2021 21:56:40 +0000 (21:56 +0000)
committerRoy Marples <roy@marples.name>
Fri, 5 Feb 2021 21:56:40 +0000 (21:56 +0000)
src/control.c

index ab75fe4803da1a7230abf19ded43b4ced36d1eed..ff8957a1aa1eb872f08cbf16c1335b33323ca8b2 100644 (file)
@@ -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)