aboutsummaryrefslogtreecommitdiff
path: root/audio/xcdplayer/files
diff options
context:
space:
mode:
authorJustin T. Gibbs <gibbs@FreeBSD.org>1994-11-07 01:14:57 +0000
committerJustin T. Gibbs <gibbs@FreeBSD.org>1994-11-07 01:14:57 +0000
commite59e99cc192c59337932fd0f033ab5b18dc180c4 (patch)
tree9dd424e2d315e3f6a8c22cd905cd1f3224adf12d /audio/xcdplayer/files
parentfc59d91b6c83af593b2829ad2054c450729d1701 (diff)
downloadports-e59e99cc192c59337932fd0f033ab5b18dc180c4.tar.gz
ports-e59e99cc192c59337932fd0f033ab5b18dc180c4.zip
Notes
Diffstat (limited to 'audio/xcdplayer/files')
-rw-r--r--audio/xcdplayer/files/cdrom_freebsd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/audio/xcdplayer/files/cdrom_freebsd.c b/audio/xcdplayer/files/cdrom_freebsd.c
index c65d2571b18c..d723b81b36a9 100644
--- a/audio/xcdplayer/files/cdrom_freebsd.c
+++ b/audio/xcdplayer/files/cdrom_freebsd.c
@@ -174,6 +174,11 @@ cdrom_eject() {
if (cdrom_fd == -1)
return(-1);
+ if (ioctl(cdrom_fd, CDIOCALLOW) == -1) {
+ perror("ioctl(cdromallow)");
+ return(-1);
+ }
+
if (ioctl(cdrom_fd, CDIOCEJECT) == -1) {
perror("ioctl(cdromeject)");
return(-1);