pass O_NONBLOCK to open

This commit is contained in:
illiliti
2020-07-31 22:12:29 +03:00
parent 8c30f20b7e
commit 8a57e66afe

View File

@@ -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;