Unlock the CD tray door in isys.ejectcdrom() (#569377)
Since we're leaving the cd drive door locked in loader, we need to make
isys's eject routines unlock the door first, or eject will fail.
---
isys/isys.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
if (!PyArg_ParseTuple(args, "i", &fd)) return NULL;
+ /* Ask it to unlock the door and then eject the disc. There's really
+ * nothing to do if unlocking doesn't work, so just eject without
+ * worrying about it. -- pjones
+ */
+ ioctl(fd, CDROM_LOCKDOOR, 0);
if (ioctl(fd, CDROMEJECT, 1)) {
PyErr_SetFromErrno(PyExc_SystemError);
return NULL;
--
1.7.0.1
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list