Skip to content

Commit

Permalink
Stop processing events on error
Browse files Browse the repository at this point in the history
Fixes #19
  • Loading branch information
avdv committed Mar 12, 2022
1 parent 6d56b3b commit 47b7cd6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main-daemon.c
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,10 @@ evdev_cb(EV_P_ ev_io *w, int revents)
/* no events */
if (r == -EAGAIN)
break;
else if (r < 0) {
pr_notice("error for libevdev device (%s): %d\n", libevdev_get_name(id->dev), -r);
break;
}

/* need sync??
* FIXME: determine if we're handling this properly or if we
Expand Down

0 comments on commit 47b7cd6

Please sign in to comment.