From 9f0bab377660d3855af785c5ddbc19f69818468e Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Wed, 5 Mar 2014 02:35:28 +0100 Subject: [PATCH 1/1] fix poll --- culfw.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/culfw.c b/culfw.c index 1904bb7..72c5c6a 100644 --- a/culfw.c +++ b/culfw.c @@ -167,7 +167,8 @@ int culfw_poll(struct culfw_dev *dev, int timeout) dev->cb(buf, r, dev->cb_data); - return pfds[0].fd; + errno = 0; + return -1; } void culfw_close(struct culfw_dev *dev) -- 2.39.5