summaryrefslogtreecommitdiffstats
path: root/src/control.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/control.c')
-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)