udev_monitor.c: inotify read of size 0 is impossible
This commit is contained in:
parent
32f9d14551
commit
37e5fa7206
1 changed files with 2 additions and 2 deletions
|
|
@ -144,7 +144,7 @@ static void *handle_event(void *ptr)
|
|||
}
|
||||
|
||||
// exit on ifd error or close
|
||||
if (!(poll_fds[0].revents & POLLIN) || len == 0) {
|
||||
if (!(poll_fds[0].revents & POLLIN)) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
@ -160,7 +160,7 @@ static void *handle_event(void *ptr)
|
|||
}
|
||||
}
|
||||
|
||||
// unreacheble
|
||||
// unreachable
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue