- add patch from Petr Stehlik <pstehlik@sophics.cz> that allows

linux to eject the physical cd. not tested.
This commit is contained in:
Bryce Denney 2002-02-22 19:43:53 +00:00
parent 2fbcdccb02
commit 5b35586f82

View File

@ -0,0 +1,21 @@
something like this is receommended by Petr Stehlik <pstehlik@sophics.cz>
Index: iodev/cdrom.cc
===================================================================
RCS file: /cvsroot/bochs/bochs/iodev/cdrom.cc,v
retrieving revision 1.28
diff -u -r1.28 cdrom.cc
--- iodev/cdrom.cc 7 Feb 2002 17:38:33 -0000 1.28
+++ iodev/cdrom.cc 22 Feb 2002 19:42:53 -0000
@@ -379,6 +379,11 @@
}
#endif
+#if __linux__
+ if (!using_file)
+ ioctl (fd, CDROMEJECT, NULL);
+#endif
+
close(fd);
fd = -1;
}