add and use xopen_nonblocking (-18b)

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Bernhard Reutner-Fischer authored and Denys Vlasenko committed 2009-10-27 17:17:34 +01:00
1 parent ca254490d7
commit a48308701a
8 files changed
+17 -7

No files matched your search

+1 -1
View File
@@ -103,7 +103,7 @@ int eject_main(int argc UNUSED_PARAM, char **argv)
eject /dev/cdrom
*/
xmove_fd(xopen(device, O_RDONLY|O_NONBLOCK), dev_fd);
xmove_fd(xopen_nonblocking(device), dev_fd);
if (ENABLE_FEATURE_EJECT_SCSI && (flags & FLAG_SCSI))
eject_scsi(device);
+2 -2
View File
@@ -1552,8 +1552,8 @@ static void process_dev(char *devname)
unsigned char args[4] = { WIN_SETFEATURES, 0, 0, 0 };
const char *fmt = " %s\t= %2ld";
/*fd = xopen(devname, O_RDONLY | O_NONBLOCK);*/
xmove_fd(xopen(devname, O_RDONLY | O_NONBLOCK), fd);
/*fd = xopen_nonblocking(devname);*/
xmove_fd(xopen_nonblocking(devname), fd);
printf("\n%s:\n", devname);
if (getset_readahead == IS_SET) {