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:
committed by
Denys Vlasenko
parent
ca254490d7
commit
a48308701a
@@ -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);
|
||||
|
Reference in New Issue
Block a user