Skip to contentSkip to conversation

volume_id fix

PATCH Applied Kay Sievers 2 participants 2 messages Oct 18, 2004

lore
Share & tools
lore
#0 lore raw

I've been told that open() should not pass O_NONBLOCK.

Kay

===== extras/volume_id/volume_id.c 1.7 vs edited =====

extras/volume_id/volume_id.c +1 -1
@@ -2128,7 +2128,7 @@
 	struct volume_id *id;
 	int fd;
 
-	fd = open(path, O_RDONLY | O_NONBLOCK);
+	fd = open(path, O_RDONLY);
 	if (fd < 0) {
 		dbg("unable to open '%s'", path);
 		return NULL;
Applied
#1 lore raw
Quoted 1 line · Kay Sievers

I've been told that open() should not pass O_NONBLOCK.

Applied, thanks.

greg k-h

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel