Writing opens drive exclusive, not nonblock.

This commit is contained in:
R. Bernstein
2009-12-20 06:35:43 -05:00
parent 1b8e52712d
commit 4ac7926091

View File

@@ -1646,7 +1646,7 @@ cdio_open_am_linux (const char *psz_orig_source, const char *access_mode)
ret->driver_id = DRIVER_LINUX;
open_access_mode = (_AM_MMC_RDWR == _data->access_mode)
? (O_RDWR|O_NONBLOCK) : (O_RDONLY|O_NONBLOCK);
? (O_RDWR|O_EXCL) : (O_RDONLY|O_NONBLOCK);
if (cdio_generic_init(_data, open_access_mode)) {
return ret;