mirror of
https://github.com/linux-can/can-utils.git
synced 2026-08-05 06:20:00 +02:00
Merge pull request #297 from marckleinebudde/fix-candump
candump: fix epoll_wait() returning -1, errno == -EINTR
This commit is contained in:
@@ -690,9 +690,9 @@ int main(int argc, char **argv)
|
|||||||
msg.msg_control = &ctrlmsg;
|
msg.msg_control = &ctrlmsg;
|
||||||
|
|
||||||
while (running) {
|
while (running) {
|
||||||
|
num_events = epoll_wait(fd_epoll, events_pending, currmax, timeout_ms);
|
||||||
if ((num_events = epoll_wait(fd_epoll, events_pending, currmax, timeout_ms)) <= 0) {
|
if (num_events == -1) {
|
||||||
//perror("epoll_wait");
|
if (errno != EINTR)
|
||||||
running = 0;
|
running = 0;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user