Don't leak a file descriptor when ejecting a CDROM.

Submitted by:	Ronald Klop, trhodes
Note to self:	don't do commits while half-asleep
This commit is contained in:
Colin Percival 2009-10-26 23:24:59 +00:00
parent bed992dc26
commit 207ec3a836
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=198503

View file

@ -239,5 +239,6 @@ mediaEjectCDROM(Device *dev)
else {
ioctl(fd, CDIOCALLOW);
ioctl(fd, CDIOCEJECT);
close(fd);
}
}