pass O_NONBLOCK to open
This commit is contained in:
parent
8c30f20b7e
commit
8a57e66afe
1 changed files with 1 additions and 1 deletions
|
|
@ -369,7 +369,7 @@ static void udev_device_set_properties_from_ioctl(struct udev_device *udev_devic
|
|||
return;
|
||||
}
|
||||
|
||||
fd = open(devnode, O_RDONLY);
|
||||
fd = open(devnode, O_RDONLY | O_NONBLOCK);
|
||||
|
||||
if (fd == -1) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue